Closed Bug 1964498 Opened 5 months ago Closed 5 months ago

"mach try fuzzy --push-to-vcs" fails with "Cannot push to this remote without pulling/updating first" [CalledProcessError: Command '('/opt/homebrew/bin/git', '-c', 'cinnabar.data=never', 'push', 'hg::ssh://hg.mozilla.org/try', ..]

Categories

(Developer Infrastructure :: Try, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug)

Details

Earlier today I used the steps at https://glandium.org/blog/?p=4370 to move from my plain git-cinnabar clone to the new git repository. Now when I'm trying to push to try via ./mach try fuzzy --push-to-vcs I get the following failure:

 ! [remote rejected]             fedbaa03cef62b3aaa52b58577f71590410b786f -> branches/default/tip (Cannot push to this remote without pulling/updating first)
error: failed to push some refs to 'hg::ssh://hg.mozilla.org/try'

[..]

subprocess.CalledProcessError: Command '('/opt/homebrew/bin/git', '-c', 'cinnabar.data=never', 'push', 'hg::ssh://hg.mozilla.org/try', '+fedbaa03cef62b3aaa52b58577f71590410b786f:refs/heads/branches/default/tip')' returned non-zero exit status 1.

  File "/Users/henrik/code/gecko/tools/tryselect/mach_commands.py", line 330, in try_fuzzy
    return run(command_context, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/henrik/code/gecko/tools/tryselect/mach_commands.py", line 172, in run
    return mod.run(**kwargs)
           ^^^^^^^^^^^^^^^^^
  File "/Users/henrik/code/gecko/tools/tryselect/selectors/fuzzy.py", line 290, in run
    return push_to_try(
           ^^^^^^^^^^^^
  File "/Users/henrik/code/gecko/tools/tryselect/push.py", line 256, in push_to_try
    vcs.push_to_try(
  File "/Users/henrik/code/gecko/python/mozversioncontrol/mozversioncontrol/repo/git.py", line 298, in push_to_try
    subprocess.check_call(cmd, cwd=self.path)
  File "/Users/henrik/.pyenv/versions/3.11.3/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)

push-to-vcs works with either hg or git-cinnabar, I don't think it is or should be expected to work with a native git repo.

Ok, if that is the case we probably can close this bug then.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.