$ ls -al
total 0
drwxr-xr-x 2 developer staff 68 Jun 13 20:48 .
drwx------+ 11 developer staff 374 Jun 13 20:48 ..
$ git tuck -- file1.txt
fatal: Not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "/Users/developer/Development/python/git-commands/bin/git-tuck", line 65, in <module>
tuck.tuck(**vars(args))
File "/Users/developer/Development/python/git-commands/bin/commands/tuck.py", line 31, in tuck
deleted_files = _deleted_files()
File "/Users/developer/Development/python/git-commands/bin/commands/tuck.py", line 17, in _deleted_files
all_files = check_output(['git', 'status', '--short', '--porcelain'])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['git', 'status', '--short', '--porcelain']' returned non-zero exit status 128
$ git tuck -- file1.txt
error: '/Users/developer/Downloads/temp' not a git repository
but should be