it fails when git-receive-pack has new line in return -


i trying response git-receive-pack request, if program return

009c0000000000000000000000000000000000000000 capabilities^{}report-status delete-refs side-band-64k quiet atomic ofs-delta agent=git/2.10.1.(apple.git-78) 

it works , git clients smartgit work when return value has new line (\n) 0000 in response standard

009c0000000000000000000000000000000000000000 capabilities^{}report-status delete-refs side-band-64k quiet atomic ofs-delta agent=git/2.10.1.(apple.git-78) 0000 

it not work , client show me

/test.git/info/refs not valid: git repository 

what problem? https://git-scm.com/book/en/v2/git-internals-transfer-protocols says.

thanks in advance

from document link to:

the git-receive-pack command responds 1 line each reference has – in case, master branch , sha-1. first line has list of server’s capabilities (here, report-status, delete-refs, , others, including client identifier).

where getting capabilities ref name from? error message seeing suggests not format expected, , see no mention of (as ref name) in transfer protocols document. i'd suggest trying refs/heads/master document uses, , branching out there.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -