This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Sep 13, 2013 11:40 PM by Chris Kinsman  
Chris Kinsman Newbie 3 posts since
Jul 18, 2012
Currently Being Moderated

Sep 13, 2013 10:21 PM

Git VCS yields " remote origin already exists

[10:36:11]Updating sources: agent side checkout
[10:36:11][Updating sources] Failed to perform checkout on agent: 'c:\git\bin\git.exe remote add origin' command failed. stderr: fatal: remote origin already exists.
I am running TeamCity 8.0.3 on Windows
I am using the Portablegit client from GitHub For Windows
If I look in buildagent temp directory I see what appears to be a bare clone in a .git folder.
If I try and run that command in that folder I get the same error.  I just can't understand why it is trying to do the remote add.
This is blocking us moving our TeamCity builds onto GitHub at this point.
Any tips appreciated.

More Like This

  • Retrieving data ...