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

Re: Non-zero exit code without error

From
Christian Couder <christian.couder@gmail.com>
Date
Feb 11, 2017, 12:28 UTC
Message-ID
<CAP8UFD3uEAuK5SQD8V8f4GC3-jC+ix2sPwiFBw_kW3JhBG6L=g@mail.gmail.com>
In-Reply-To
<CAL7ZE5yXaJQFci+9aF4+cxeycnf71FMyLTV14t_TGDR3cnnfVA@mail.gmail.com>
On Wed, Feb 8, 2017 at 11:26 AM, Serdar Sahin <serdar@peakgames.net> wrote:
> Hi Christian,
>
>
> We are using a private repo (Github Enterprise).
Maybe you could try 'git fast-export --anonymize ...' on it.
Show 10 quoted lines
> Let me give you the
> details you requested.
>
>
> On Git Server: git version 2.6.5.1574.g5e6a493
>
> On my client: git version 2.10.1 (Apple Git-78)
>
>
> I’ve tried to reproduce it with public repos, but couldn’t do so.
You might try using the latest released version (2.11.1).

For example you could install the last version on the client and then clone from the server with --bare and use this bare repo as if it was the server.

You could also try `git fsck` to see if there are problems on your repo.
Are there submodules or something a bit special?

In the end it's difficult for us to help if we cannot reproduce, so your best bet might be to debug yourself using gdb for example.

Show 9 quoted lines
> If I
> could get an error/log output, that would be sufficient.
>
>
> I am also including the full output below. (also git gc)
>
>
> MacOSX:test serdar$ git clone --mirror --depth 50 --no-single-branch
> git@git.privateserver.com:Casual/code_repository.git
You could also try with different options above...
Show 16 quoted lines
> Cloning into bare repository 'code_repository.git'...
>
> remote: Counting objects: 3362, done.
>
> remote: Compressing objects: 100% (1214/1214), done.
>
> remote: Total 3362 (delta 2335), reused 2968 (delta 2094), pack-reused 0
>
> Receiving objects: 100% (3362/3362), 56.77 MiB | 1.83 MiB/s, done.
>
> Resolving deltas: 100% (2335/2335), done.
>
> MacOSX:test serdar$ cd code_repository.git/
>
> MacOSX:code_repository.git serdar$ GIT_CURL_VERBOSE=1 GIT_TRACE=1  git
> fetch --depth 50 origin cc086c96cdffe5c1ac78e6139a7a4b79e7c821ee
... and above.

Also it looks like you use ssh so something like GIT_SSH_COMMAND="ssh -vv" might help more than GIT_CURL_VERBOSE=1

Show 24 quoted lines
> 13:23:15.648337 git.c:350               trace: built-in: git 'fetch'
> '--depth' '50' 'origin' 'cc086c96cdffe5c1ac78e6139a7a4b79e7c821ee'
>
> 13:23:15.651127 run-command.c:336       trace: run_command: 'ssh'
> 'git@git.privateserver.com' 'git-upload-pack
> '\''Casual/code_repository.git'\'''
>
> 13:23:17.750015 run-command.c:336       trace: run_command: 'gc' '--auto'
>
> 13:23:17.750829 exec_cmd.c:189          trace: exec: 'git' 'gc' '--auto'
>
> 13:23:17.753983 git.c:350               trace: built-in: git 'gc' '--auto'
>
> MacOSX:code_repository.git serdar$ echo $?
>
> 1
>
> MacOSX:code_repository.git serdar$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git gc --auto
>
> 13:23:45.899038 git.c:350               trace: built-in: git 'gc' '--auto'
>
> MacOSX:code_repository.git serdar$ echo $?
>
> 0
Previous: Serdar SahinNext: Serdar Sahin
Message 4 of 6 in “Non-zero exit code without error”
  1. Serdar SahinFeb 7, 2017
  2. Christian CouderFeb 8, 2017
  3. Serdar SahinFeb 8, 2017
  4. Christian CouderFeb 11, 2017
  5. Serdar SahinFeb 14, 2017
  6. Jeff KingFeb 15, 2017

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.