]> granicus.if.org Git - git/commitdiff
Merge branch 'ld/p4-compare-dir-vs-symlink'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Dec 2016 08:11:42 +0000 (00:11 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Dec 2016 08:11:42 +0000 (00:11 -0800)
"git p4" misbehaved when swapping a directory and a symbolic link.

* ld/p4-compare-dir-vs-symlink:
  git-p4: avoid crash adding symlinked directory

1  2 
git-p4.py

diff --cc git-p4.py
index 73f5fce4d6b65d05a89a1ac5a9564280038f5f54,16d0b8a6ee505ed91245f898597e844496dc5182..16e3a18e73ee8660a71c6694bf50e4d0e8295ee9
+++ b/git-p4.py
@@@ -1607,8 -1582,8 +1615,9 @@@ class P4Submit(Command, P4UserMap)
          filesToDelete = set()
          editedFiles = set()
          pureRenameCopy = set()
+         symlinks = set()
          filesToChangeExecBit = {}
 +        all_files = list()
  
          for line in diff:
              diff = parseDiffTreeEntry(line)