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

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

From
Simon Hausmann <simon@lst.de>
Date
Sep 19, 2007, 19:03 UTC
Message-ID
<200709192103.53526.simon@lst.de>
In-Reply-To
<119022570352-git-send-email-git@davidb.org>
On Wednesday 19 September 2007 20:15:03 David Brown wrote:
Show 22 quoted lines
> 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:
Acked-By: Simon Hausmann <simon@lst.de>
Simon
Previous: David BrownNext: David Brown
Message 2 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.