-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amending initial commit throws and logs exception #4972
Comments
Edit: And in the initial description too, sorry for the noise. |
+1 for this. It is straightforward to implement, no custom |
OK, then let's do this.
I do not know much about SCM API plans either. @akosyakov, is it possible to get the Git amend enhancements (#4528) to the |
Description
When attempting to amend the initial commit, an exception is thrown. This was discovered when testing #4528 (comment) but the problem occurs on the master branch so I'm opening a separate issue.
Expect either:
Reproduction Steps
Find a Git repository that does not have many commits and amend until one gets to the initial commit.
OS and Theia version:
Master branch, seen on both Mac and Windows
Diagnostics:
root ERROR The command
git reset HEAD~ --soft
exited with an unexpected code: 128. The caller should either handle this error, or expect that exit code.root ERROR fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
root ERROR Request exec failed with error: fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
GitError: fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
root ERROR Uncaught Exception: GitError: fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
root ERROR GitError: fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
The text was updated successfully, but these errors were encountered: