From: David Brown Date: Wed, 19 Sep 2007 18:15:03 GMT Subject: [PATCH] [git-p4] Detect exec bit in more cases. Message-ID: <119022570352-git-send-email-git@davidb.org> git-p4 was missing the execute bit setting if the file had other attribute bits set. --- contrib/fast-import/git-p4 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index adaaae6..50850b8 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -932,7 +932,10 @@ class P4Sync(Command): data = file['data'] mode = "644" - if file["type"].startswith("x"): + if (file["type"].startswith("x") or + file["type"].startswith("cx") or + file["type"].startswith("kx") or + file["type"].startswith("ux")): mode = "755" elif file["type"] == "symlink": mode = "120000" -- 1.5.3.1