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

Re: git gc logs to standard error

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Dec 14, 2009, 16:46 UTC
Message-ID
<8c9a060912140846r36897c7cl738036963b0d5693@mail.gmail.com>
In-Reply-To
<4B2669CD.9020505@inf.utfsm.cl>
On Mon, Dec 14, 2009 at 08:37, Richard Rossel <rrossel@inf.utfsm.cl> wrote:
Show 54 quoted lines
>>
>> On Mon, Dec 14, 2009 at 08:23, Richard Rossel<rrossel@inf.utfsm.cl>
>>  wrote:
>>
>>>
>>> $ git --version
>>> git version 1.5.4.3
>>>
>>> And when there is no change in the repo
>>>
>>> $ git fetch --q; echo $?
>>> 0
>>>
>>> no messages and no error , but when there is a change to syncronize
>>>
>>> $ git fetch --q; echo $?
>>> remote: Counting objects: 7, done.
>>> remote: Compressing objects: 100% (5/5), done.
>>> remote: Total 5 (delta remote: 2), reused 0 (delta 0)
>>> Unpacking objects: 100% (5/5), done.
>>>  From git@boss:sandbox
>>>   3e4df7f..b92d27c  master     ->  origin/master
>>> 0
>>>
>>>
>>
>> Don't use a double dash, if you're using the short option.
>>
>> git fetch -q
>> OR
>> git fetch --quiet
>>
>> git fetch --q<--- This is not what you think it is.
>>
>> -Jacob
>>
>>
>
> doh, sorry, my mistake
>
> $ git fetch -q; echo $?
> remote: Counting objects: 5, done.
> remote: Compressing objects: 100% (2/2), done.
> remote: Total 3 (delta 1), reused 0 (delta 0)
> Unpacking objects: 100% (3/3), done.
> From git@boss:sandbox
>   b92d27c..17b8b5d  master     -> origin/master
> 0
>
> These is the output when there is a change to be syncronized
>
> BTW,  in crontab the commands are using -q option, the mistake was made just
> here :)
>

It looks like you want to upgrade to at least 1.6.0.3 (I know that with 1.6.5.5 I get no output with 'git fetch -q', whether or not there are pending updates). There's a fix (fe8aa148) for the issue[1] it looks like you're having.

[1] http://marc.info/?l=git&m=121529226023180&w=2
Previous: Richard RosselNext: Richard Rossel
Message 7 of 8 in “git gc logs to standard error”
  1. Richard RosselDec 14, 2009
  2. Johan HerlandDec 14, 2009
  3. Jacob HelwigDec 14, 2009
  4. Richard RosselDec 14, 2009
  5. Jacob HelwigDec 14, 2009
  6. Richard RosselDec 14, 2009
  7. Jacob HelwigDec 14, 2009
  8. Richard RosselDec 14, 2009

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.