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

Re: [PATCH v1] git-p4: place temporary refs used for branch import under ref/git-p4-tmp

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 28, 2016, 18:21 UTC
Message-ID
<5772C00C.6000403@kdbg.org>
In-Reply-To
<1467012398-7357-1-git-send-email-larsxschneider@gmail.com>
Am 27.06.2016 um 09:26 schrieb larsxschneider@gmail.com:
Show 21 quoted lines
> --- a/git-p4.py
> +++ b/git-p4.py
> @@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap):
>           self.useClientSpec_from_options = False
>           self.clientSpecDirs = None
>           self.tempBranches = []
> -        self.tempBranchLocation = "git-p4-tmp"
> +        self.tempBranchLocation = "refs/git-p4-tmp"
>           self.largeFileSystem = None
>
>           if gitConfig('git-p4.largeFileSystem'):
> diff --git a/t/t9801-git-p4-branch.sh b/t/t9801-git-p4-branch.sh
> index 0aafd03..8f28ed2 100755
> --- a/t/t9801-git-p4-branch.sh
> +++ b/t/t9801-git-p4-branch.sh
> @@ -300,7 +300,7 @@ test_expect_success 'git p4 clone complex branches' '
>   		test_path_is_file file2 &&
>   		test_path_is_file file3 &&
>   		! grep update file2 &&
> -		test_path_is_missing .git/git-p4-tmp
> +		test_path_is_missing .git/ref/git-p4-tmp

This should be .git/refs/git-p4-tmp, no? Otherwise, this does not test what it should test.

Show 9 quoted lines
>   	)
>   '
>
> @@ -352,7 +352,7 @@ test_expect_success 'git p4 sync changes to two branches in the same changelist'
>   		test_path_is_file file2 &&
>   		test_path_is_file file3 &&
>   		! grep update file2 &&
> -		test_path_is_missing .git/git-p4-tmp
> +		test_path_is_missing .git/ref/git-p4-tmp
Same here.
>   	)
>   '
-- Hannes
Previous: Michael HaggertyNext: Junio C Hamano
Message 3 of 7 in “git-p4: place temporary refs used for branch import under ref/git-p4-tmp”
  1. git-p4: place temporary refs used for branch import under ref/git-p4-tmplarsxschneider@gmail.com, Jun 27, 2016
  2. Michael HaggertyJun 28, 2016
  3. Johannes SixtJun 28, 2016
  4. Junio C HamanoJun 28, 2016
  5. git-p4: place temporary refs used for branch import under refs/git-p4-tmplarsxschneider@gmail.com, Jun 29, 2016
  6. Vitor AntunesJul 1, 2016
  7. Junio C HamanoJul 1, 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.