Re: race condition when pushing
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 5, 2015, 23:00 UTC
- Message-ID
- <CAPig+cSGSe=7PY7HVuAdy=4chbkkACiEBZzvDA4AktMKFiRfPw@mail.gmail.com>
- In-Reply-To
- <SNT153-DS223275FC4D60A266EE7E28F6290@phx.gbl>
On Thu, Nov 5, 2015 at 11:11 AM, Lyle Ziegelmiller <lyle_z@hotmail.com> wrote:
Show 24 quoted lines
> 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.
If I recall correctly, the typical culprit is a Windows virus scanner (or even an indexer) locking the file, so git is unable to manipulate it.