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

RE: one bug on git

From
LCLou, Pengfei (NSB - CN/Hangzhou) <pengfei.lou@nokia-sbell.com>
Date
Dec 3, 2019, 08:29 UTC
Message-ID
<1af00173f96243bea760baaddeb15777@nokia-sbell.com>
In-Reply-To
<5e27e2a9f6374742859b4b87d85c56e9@nokia-sbell.com>
Hello community 
     One problem I found recently within my working, please check my detail below. 
     I tried to run my script (check the attached file 'problem.sh') to build one git repository , it can be successful, but the command "git log -raw -1 ${revision}^ ${revision}" on that repo would generate some  unexpected result,  please check the result below

[pelou@hzling29 try_des]$ git --version git version 2.6.2

[pelou@hzling29 try_des]$ git log --raw -1 164304f48726d31336e2e130a90e42b7f1c480f8
commit 164304f48726d31336e2e130a90e42b7f1c480f8
Author: pelou <mailto:pengfei.lou@nokia-sbell.com>
Date:   Tue Dec 3 14:54:33 2019 +0800
    3
:100644 100644 9a7456b... 8148ef7... M  lpf
[pelou@hzling29 try_des]$ git log --raw -1 164304f48726d31336e2e130a90e42b7f1c480f8^ 164304f48726d31336e2e130a90e42b7f1c480f8
commit dd1a95338ffd471e5b270a487b585bbfcf9926a5
Author: pelou <mailto:pengfei.lou@nokia-sbell.com>
Date:   Tue Dec 3 14:54:33 2019 +0800
    2
:100644 100644 d474e1b... 9a7456b... M  lpf 
     Next step I changed my script(check the attached file good.sh) and only add some delays after "git push", everything is normal, check it below
[pelou@hzling29 try_des]$ git log --raw -1 2027dc54da1896cf1dfa301c3444b1690d6cb1d8
commit 2027dc54da1896cf1dfa301c3444b1690d6cb1d8
Author: pelou <mailto:pengfei.lou@nokia-sbell.com>
Date:   Tue Dec 3 15:00:45 2019 +0800
    3
:100644 100644 9a7456b... 8148ef7... M  lpf
[pelou@hzling29 try_des]$ git log --raw -1 2027dc54da1896cf1dfa301c3444b1690d6cb1d8^ 2027dc54da1896cf1dfa301c3444b1690d6cb1d8
commit 2027dc54da1896cf1dfa301c3444b1690d6cb1d8
Author: pelou <mailto:pengfei.lou@nokia-sbell.com>
Date:   Tue Dec 3 15:00:45 2019 +0800
    3
:100644 100644 9a7456b... 8148ef7... M  lpf
So please help me fix it. Please let me know if I was wrong or miss some thing
Br, Hercules
Previous: Lou, Pengfei (NSB - CN/Hangzhou)Next: Bryan Turner
Message 2 of 7 in “RE: one bug on git”
  1. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  2. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  3. Bryan TurnerDec 3, 2019
  4. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  5. Bryan TurnerDec 3, 2019
  6. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  7. Bryan TurnerDec 3, 2019

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.