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

Re: BUG on OSX `git p4 submit` can fail when the workspace root doesn't exist locally.

From
Luke Diamand <luke@diamand.org>
Date
Apr 28, 2016, 07:36 UTC
Message-ID
<CAE5ih78eGJN2kUjxfhUiKTAMK5rbTGZ-SFp405w2XRL6BDvwHQ@mail.gmail.com>
In-Reply-To
<CAGZ79kZX5H8ddhZQa4r9SPyhAYo=o6gBae3oPCYQ6iNtxXq1Cg@mail.gmail.com>
On 27 April 2016 at 21:53, Stefan Beller <sbeller@google.com> wrote:
Show 15 quoted lines
> On Wed, Apr 27, 2016 at 11:06 AM, Jacob Smith <jaroslov@gmail.com> wrote:
>> I debugged the issue using the script here:
>>     https://github.com/git/git/blob/master/git-p4.py
>> I'm not sure how close to the main repo that is.
>>
>> On Wed, Apr 27, 2016 at 11:28 AM, Stefan Beller <sbeller@google.com> wrote:
>>> On Wed, Apr 27, 2016 at 9:15 AM, Jacob Smith <jaroslov@gmail.com> wrote:
>>>> On OS X,
>>>
>>> Do you use the Git as provided from OS X? In that case you better report the bug
>>> to Apple, as their version of Git is slightly different (not close on
>>> upstream, by both
>>> having additional patches as well as not following the upstream closely IIUC).
>
> In that case, I have cc'd Luke and Lars, who work on p4
Which version of p4 are you using?

Your suggested fix looks plausible though. Possibly it needs both chdirs() so that "p4 sync" will work if the caller is using a .p4config file in the p4 client directory to set the P4CLIENT.

Thanks! Luke

Previous: Stefan Beller
Message 5 of 5 in “BUG on OSX `git p4 submit` can fail when the workspace root doesn't exist locally.”
  1. Jacob SmithApr 27, 2016
  2. Stefan BellerApr 27, 2016
  3. Jacob SmithApr 27, 2016
  4. Stefan BellerApr 27, 2016
  5. Luke DiamandApr 28, 2016

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.