git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] [git-p4] Detect exec bit in more cases.

From
David Brown <git@davidb.org>
Date
Sep 19, 2007, 19:14 UTC
Message-ID
<20070919191412.GA6475@old.davidb.org>
In-Reply-To
<200709192103.53526.simon@lst.de>
On Wed, Sep 19, 2007 at 09:03:50PM +0200, Simon Hausmann wrote:
Show 25 quoted lines
>On Wednesday 19 September 2007 20:15:03 David Brown wrote:
>> 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"
>
>I'm fine with this, so unless you find a better way:

Well, I just tested it, and it still doesn't work, so I need to take some time and try to figure out what is happening.

I'm sometimes getting back 'xtext', and sometimes things like 'text+mx' back from perforce, so I need to read up, and really figure out what to look for.

David
Previous: Simon HausmannNext: Dana How
Message 3 of 13 in “[git-p4] Detect exec bit in more cases.”
  1. [git-p4] Detect exec bit in more cases.David Brown, Sep 19, 2007
  2. Simon HausmannSep 19, 2007
  3. David BrownSep 19, 2007
  4. Dana HowSep 19, 2007
  5. David BrownSep 19, 2007
  6. David BrownSep 20, 2007
  7. Junio C HamanoSep 20, 2007
  8. Simon HausmannSep 21, 2007
  9. Junio C HamanoSep 21, 2007
  10. David BrownSep 21, 2007
  11. Simon HausmannSep 24, 2007
  12. [git-p4] Detect exec bit in more cases.David Brown, Sep 19, 2007
  13. David BrownSep 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.