jedbrown / git-fat

Simple way to handle fat files without committing them to git, supports synchronization using rsync
BSD 2-Clause "Simplified" License
621 stars 137 forks source link

Exception when pulling into a repository with symlink #8

Closed tomasherman closed 11 years ago

tomasherman commented 11 years ago

Hi,

git fat pull seems to explode if there is a symlink in commited in the working directory.

rserve@rserve-devel:~/tomas/clone$ toh/608-gitfat-experimentalmerge * = git fat pull
receiving file list ... 
0 files to consider

sent 4 bytes  received 6 bytes  20.00 bytes/sec
total size is 0  speedup is 0.00
Restoring 6957a37c7a41455df2ced63fd6fb2e5202b83737 -> data/wikidi_digital-camera/2012-10-prvni-data/better.params
Traceback (most recent call last):
  File "/home/rserve/usr/git-fat/git-fat", line 467, in <module>
    fat.cmd_pull(sys.argv[2:])
  File "/home/rserve/usr/git-fat/git-fat", line 338, in cmd_pull
    self.checkout()
  File "/home/rserve/usr/git-fat/git-fat", line 306, in checkout
    for digest, fname in self.orphan_files():
  File "/home/rserve/usr/git-fat/git-fat", line 268, in orphan_files
    digest = self.decode_file(fname)[0]
  File "/home/rserve/usr/git-fat/git-fat", line 161, in decode_file
    stat = os.stat(fname)
OSError: [Errno 2] No such file or directory: 'data/wikidi_digital-camera/2012-10-prvni-data/crawl'

(data/wikidi_digital-camera/2012-10-prvni-data/crawl is a symlink)

sorry i suck at github, see the #9