Skip to content

UnauthorizedAccessViolation Win 7 x64, git-tfs version 0.15 and msysgit 1.7.11 #230

Closed
jw-github opened this Issue Oct 8, 2012 · 1 comment

2 participants

@jw-github

I seem to always get some form of the following. If I run 0.15 and msysgit 1.7.11 under XP in Virtual PC it work fine with version 0.14 and 0.15

If I can lend a hand in helping to resolve this just point me in the right direction.

C63969 = fd2b19a52d68ac9cbfc439df9c9612ffeb20d316
GC Countdown: 0
git command: Starting process: git gc --auto
git command time: [00:00:00.0400000] gc --auto
git command: Starting process: git merge refs/remotes/tfs/default
git stderr: fatal: refs/remotes/tfs/default - not something we can merge
git command time: [00:00:00.0400001] merge refs/remotes/tfs/default
Run exception, could be run or merge:
at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClass8.b__7() in C:\Projects\git-tfs\GitTfs\Core\Git
at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in C:\Projects\git-tfs\GitTfs\Core\GitHelpers
at Sep.Git.Tfs.Core.GitHelpers.CommandOutputPipe(Action`1 handleOutput, String[] command) in C:\Projects\git-tfs\G
at Sep.Git.Tfs.Core.GitHelpers.CommandNoisy(String[] command) in C:\Projects\git-tfs\GitTfs\Core\GitHelpers.cs:lin
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in C:\Project
s\git-tfs\GitTfs\Commands\Clone.cs:line 49

Something went wrong, can't cleanup files because of UnauthorizedAccessException:
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in C:\Project
s\git-tfs\GitTfs\Commands\Clone.cs:line 69

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Sep.Git.Tfs.
Core.GitCommandException: Command exited with error code: 128
at Sep.Git.Tfs.Core.GitHelpers.Close(Process process) in C:\Projects\git-tfs\GitTfs\Core\GitHelpers.cs:line 205
at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClass8.b__7() in C:\Projects\git-tfs\GitTfs\Core\GitHel
pers.cs:line 59
at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in C:\Projects\git-tfs\GitTfs\Core\GitHelpers.cs
:line 182
at Sep.Git.Tfs.Core.GitHelpers.CommandOutputPipe(Action1 handleOutput, String[] command) in C:\Projects\git-tfs\GitT
fs\Core\GitHelpers.cs:line 54
at Sep.Git.Tfs.Core.GitHelpers.CommandNoisy(String[] command) in C:\Projects\git-tfs\GitTfs\Core\GitHelpers.cs:line 4
6
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in C:\Projects\g
it-tfs\GitTfs\Commands\Clone.cs:line 90
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath) in C:\Projects\git-tfs\GitTfs\Commands\Clo
ne.cs:line 36
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signatu
reStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signatur
e sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters
, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters
, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList
1 args) in C:\Projects\git-tfs\GitTfs\Util\G
itTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList1 unparsedArgs) in C:\Projects\git-tfs\GitTfs\GitTfs.cs:line
58
at Sep.Git.Tfs.GitTfs.Run(IList
1 args) in C:\Projects\git-tfs\GitTfs\GitTfs.cs:line 42
at Sep.Git.Tfs.Program.Main(String[] args) in C:\Projects\git-tfs\GitTfs\Program.cs:line 24
Command exited with error code: 128

@jw-github

I have resolved this. Turns out I had a tfs-remote.default.url in my global config and this caused
line 49 in Clone.cs to fail:
if (retVal == 0) globals.Repository.CommandNoisy("merge", globals.Repository.ReadAllTfsRemotes().First().RemoteRef);

Removing the tfs-remote.default.url from my git config and it works.

I did pass in a --id parameter so maybe there is a bug in that routine that digs through
the config looking for tfs-remotes.

The reason I had a default in my globals is I have many solutions to access. In the past
(version .12 through .14 I believe) that saved me from having to use the TFS URL parameter.

@spraints spraints closed this Oct 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.