summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hitz <christian.hitz@aizo.com>2013-08-15 17:18:27 +0200
committerChristian Hitz <christian.hitz@aizo.com>2013-08-20 11:24:34 +0200
commit8a296c8e711edc8a0e6c300949db63dd983db48a (patch)
tree532b6fb7d5abb72a700a2a142b9a4858a84c6783
parent4664f2dc2eee13b86d2e426780fd1130e0086e9f (diff)
downloadgit-fat-8a296c8e711edc8a0e6c300949db63dd983db48a.tar.gz
ignore symbolic links during index-filter
symbolic links should not be handled by git-fat even if their name match the filelist
-rwxr-xr-xgit-fat3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-fat b/git-fat
index f654fab..6345694 100755
--- a/git-fat
+++ b/git-fat
@@ -444,6 +444,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: