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

Re: [PATCH] http-push: trim trailing newline from remote symref

From
Kyle J. McKay <mackyle@gmail.com>
Date
Jan 13, 2015, 16:26 UTC
Message-ID
<4E1001F7-2D26-483A-9339-E2570559ECF0@gmail.com>
In-Reply-To
<20150113022857.GA4087@peff.net>
On Jan 12, 2015, at 18:28, Jeff King wrote:
Show 13 quoted lines
> When we fetch a symbolic ref file from the remote, we get
> the whole string "ref: refs/heads/master\n", recognize it by
> skipping past the "ref: ", and store the rest. We should
> chomp the trailing newline.
> [..]
> This is a regression in v2.1.0.
>
> It was causing t5540 to fail, but I realized I have been building with
> NO_EXPAT for a while, so I didn't notice. Frankly, I'm kind of  
> surprised
> and disturbed that nobody noticed it before now. More evidence that we
> can kill off dumb http-push? I would have thought somebody else would
> have noticed the test failure, though.
I have this line in my 2.1.4 test output log:
t5540-http-push-webdav.sh .......................... ok
And again in my 2.2.2 test output log:
t5540-http-push-webdav.sh .......................... ok
Running the 2.2.2 version with -v I get:

t5540-http-push-webdav.sh .. ok 1 - setup remote repository ok 2 - create password-protected repository ok 3 - setup askpass helper ok 4 - clone remote repository ok 5 - push to remote repository with packed refs ok 6 - push already up-to-date ok 7 - push to remote repository with unpacked refs ok 8 - http-push fetches unpacked objects ok 9 - http-push fetches packed objects ok 10 - create and delete remote branch ok 11 - MKCOL sends directory names with trailing slashes ok 12 - PUT and MOVE sends object to URLs with SHA-1 hash suffix ok 13 - non-fast-forward push fails ok 14 - non-fast-forward push show ref status ok 15 - non-fast-forward push shows help message not ok 16 - force with lease aka cas # TODO known breakage ok 17 - push to password-protected repository (user in URL) not ok 18 - user was prompted only once for password # TODO known breakage not ok 19 - push to password-protected repository (no user in URL) # TODO known breakage # still have 3 known breakage(s) # passed all remaining 16 test(s) 1..19 ok

I also get the same results using v2.3.0-rc0.

I do not build with NO_EXPAT. This is running the tests on OS X without this patch applied. Is something else required to get a failure?

-Kyle
Previous: Jeff KingNext: Jeff King
Message 2 of 6 in “http-push: trim trailing newline from remote symref”
  1. http-push: trim trailing newline from remote symrefJeff King, Jan 13, 2015
  2. Kyle J. McKayJan 13, 2015
  3. Jeff KingJan 13, 2015
  4. Kyle J. McKayJan 14, 2015
  5. Junio C HamanoJan 16, 2015
  6. Jeff KingJan 13, 2015

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.