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

race condition when pushing

From
LZLyle Ziegelmiller <lyle_z@hotmail.com>
Date
Nov 5, 2015, 16:11 UTC
Message-ID
<SNT153-DS223275FC4D60A266EE7E28F6290@phx.gbl>
Hi

git push --set-upstream has some sort of race condition. Some times when I execute it, it works. Other times, it does not. Below is from my command window. I've executed the exact same command (using bash history re-execution, so I know I didn't make a typo), repeatedly. Notice the last execution results in an error. I am the only person on my machine. This is non-deterministic behavior.

lylez@LJZ-DELLPC ~/gittest/local $ git push --set-upstream origin localbranch1 Branch localbranch1 set up to track remote branch localbranch1 from origin. Everything up-to-date

lylez@LJZ-DELLPC ~/gittest/local $ git push --set-upstream origin localbranch1 Branch localbranch1 set up to track remote branch localbranch1 from origin. Everything up-to-date

lylez@LJZ-DELLPC ~/gittest/local $ git push --set-upstream origin localbranch1 error: could not commit config file .git/config Branch localbranch1 set up to track remote branch localbranch1 from origin. Everything up-to-date

I'm using Git in a Cygwin window on a 32-bit Windows 10 machine. Others have experienced this as well: http://stackoverflow.com/questions/18761284/git-error-could-not-commit-config-file

lylez@LJZ-DELLPC ~/gittest/local $ git --version git version 2.5.1

Regards,
Lyle Ziegelmiller
Next: Eric Sunshine
Message 1 of 4 in “race condition when pushing”
  1. Lyle ZiegelmillerNov 5, 2015
  2. Eric SunshineNov 5, 2015
  3. Johannes SchindelinNov 17, 2015
  4. Johannes SchindelinNov 18, 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.