summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Brown <jed@59A2.org>2013-08-20 08:51:48 -0500
committerJed Brown <jed@59A2.org>2013-08-20 08:51:48 -0500
commitf0becae702b967e1b963b1a101aca233436272e8 (patch)
tree4a85f0f5b9b458c64cc0bda49800789c3a57b3e1
parent6e768244fdbca34374a53459441b04adfd26c3a1 (diff)
parent8a296c8e711edc8a0e6c300949db63dd983db48a (diff)
downloadgit-fat-f0becae702b967e1b963b1a101aca233436272e8.tar.gz
Merge branch 'symlinks-in-index-filter' of github:chhitz/git-fat (PR #15)
* 'symlinks-in-index-filter' of github:chhitz/git-fat: ignore symbolic links during index-filter
-rwxr-xr-xgit-fat3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-fat b/git-fat
index 2e5894c..4455600 100755
--- a/git-fat
+++ b/git-fat
@@ -470,6 +470,9 @@ class GitFat(object):
filename = tail.strip()
if filename not in filelist:
continue
+ if mode == "120000":
+ # skip symbolic links
+ continue
# This file will contain the hash of the cleaned object
hashfile = os.path.join(self.gitdir, 'fat', 'index-filter', blobhash)
try: