Closed slavkoja closed 10 years ago
Simmilar exception i get when i run:
git fat status
in empty (nothing commited yet) working tree:
git fat status
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Traceback (most recent call last):
File "/usr/local/bin/git-fat", line 590, in <module>
fat.cmd_status(sys.argv[2:])
File "/usr/local/bin/git-fat", line 360, in cmd_status
referenced = self.referenced_objects(**refargs)
File "/usr/local/bin/git-fat", line 296, in referenced_objects
rev = self.revparse('HEAD')
File "/usr/local/bin/git-fat", line 177, in revparse
return subprocess.check_output(['git', 'rev-parse', revname]).strip()
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128
Hi, while testing the git-fat, i run:
out of git tree, to i can see usage message, but i get this ugly exception traceback:
I am not sure, if raising the exception is good solution in this case.
regards