You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git reset --hard origin/master
stderr: 'fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]''
File "renku/core/metadata/repository.py", line 1397, in _run_git_command
return getattr(repository.git, command)(*args, **kwargs)
File "git/cmd.py", line 638, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "git/cmd.py", line 1183, in _call_process
return self.execute(call, **exec_kwargs)
File "git/cmd.py", line 983, in execute
raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
GitCommandError: Git command failed: Cmd('git') failed due to: exit code(128)
cmdline: git reset --hard origin/master
stderr: 'fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]''
(7 additional frame(s) were not displayed)
...
File "renku/service/controllers/api/mixins.py", line 225, in execute_op
self.reset_local_repo(project)
File "renku/service/controllers/api/mixins.py", line 274, in reset_local_repo
repository.reset(f"{origin}/{repository.active_branch}", hard=True)
File "renku/core/metadata/repository.py", line 251, in reset
self.run_git_command("reset", _to_string(reference), hard=hard)
File "renku/core/metadata/repository.py", line 263, in run_git_command
return _run_git_command(self._repository, command, *args, **kwargs)
File "renku/core/metadata/repository.py", line 1405, in _run_git_command
) from e
The text was updated successfully, but these errors were encountered:
We should fix the
Repository
implementation so it's clear that we want to reset to a reference, by adding--
in the subprocess callSentry Issue: RENKU-PYTHON-3E
The text was updated successfully, but these errors were encountered: