Code

git-p4: Process detectCopiesHarder with --bool
authorVitor Antunes <vitor.hda@gmail.com>
Mon, 22 Aug 2011 08:33:09 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Aug 2011 18:50:43 +0000 (11:50 -0700)
Signed-off-by: Vitor Antunes <vitor.hda@gmail.com>
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4

index 29a5390fbd59a3546e37d07b51df471f53932b0e..0db3e72665ff85d4e284be4ad54f12b8500b2ac6 100755 (executable)
@@ -789,7 +789,7 @@ class P4Submit(Command, P4UserMap):
         elif detectCopies != "" and detectCopies.lower() != "false":
             diffOpts += " -C%s" % detectCopies
 
-        if gitConfig("git-p4.detectCopiesHarder").lower() == "true":
+        if gitConfig("git-p4.detectCopiesHarder", "--bool") == "true":
             diffOpts += " --find-copies-harder"
 
         diff = read_pipe_lines("git diff-tree -r %s \"%s^\" \"%s\"" % (diffOpts, id, id))