SRombauts / UEGitPlugin

Unreal Engine 5 Git LFS 2 Source Control Plugin (beta)
http://srombauts.github.io/UEGitPlugin
MIT License
810 stars 165 forks source link

Git 'Accept Settings' gives log error #17

Closed Web-eWorks closed 9 years ago

Web-eWorks commented 9 years ago

In 4.5 and 4.6, when I click 'Accept Settings', it gives me an error in the source control log. From what I remember, it is calling the git status command.

This is the error:

Error fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Error Use '--' to separate paths from revisions, like this:
Error 'git <command> [<revision>...] -- [<file>...]'
Info HEAD
Web-eWorks commented 9 years ago

After looking in the code, it appears that this error is called by calling git rev-parse --abbrev-ref HEAD in a repository with no commits.

SRombauts commented 9 years ago

Thanks for reporting this!