question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get latest from TFS

See original GitHub issue

I am trying to get latest from TFS to sync with Git but am facing a conflict error when i do a pull. My branch is clean and I’m unable to checkin either. If I try to commit or reset, git says my working tree is clean

E:\WarpDrive\Compare>git-tfs pull --debug
Command run:git tfs pull --debug
No authors file used.
git-tfs version 0.25.1.0 (TFS client library 14.0.0.0 (MS)) (64-bit)
Commits visited count:2
Working with tfs remote: default => $/System/Branches/FeatureBranches/Compare
Fetching from TFS remote 'default'...
Commits visited count:1
Commits visited count:2
Cleaning... System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> LibGit2Sharp.MergeConflictException: 8 conflicts prevent checkout
   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
   at LibGit2Sharp.Core.Proxy.git_checkout_tree(RepositorySafeHandle repo, ObjectId treeId, GitCheckoutOpts& opts)
   at LibGit2Sharp.Repository.CheckoutTree(Tree tree, IList`1 paths, IConvertableToGitCheckoutOpts opts)
   at LibGit2Sharp.Repository.FastForwardMerge(GitAnnotatedCommitHandle annotatedCommit, Signature merger, MergeOptions options)
   at LibGit2Sharp.Repository.Merge(GitAnnotatedCommitHandle[] annotatedCommits, Signature merger, MergeOptions options)
   at LibGit2Sharp.Repository.Merge(Commit commit, Signature merger, MergeOptions options)
   at Sep.Git.Tfs.Core.GitRepository.Merge(String commitish)
   at Sep.Git.Tfs.Commands.Pull.Run(String remoteId)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args)
   at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs)
   at Sep.Git.Tfs.Program.Main(String[] args)
8 conflicts prevent checkout

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
VitalyBrusentsevcommented, Nov 23, 2016

Hi everyone,

I have also recently encountered the same issue. Unfortunately, using @pmiossec’s binaries did not help. As fetch always succeeds, and the problem occurs at the merge stage of pull operation, and I use git-tfs exclusively for importing from TFS, I was able to bypass it by replacing

git tfs pull

with

git tfs fetch
git reset tfs/default --hard

You can replace tfs/default with your respective tfs remote names. Hope this helps.

2reactions
pmiosseccommented, Nov 12, 2016

Could you test the last dev version that you will find here: https://ci.appveyor.com/project/pmiossec/git-tfs-v2qcm/build/0.25.1.442/artifacts

I hope it is something fixed in a more recent version of LibGit2Sharp…

Read more comments on GitHub >

github_iconTop Results From Across the Web

TFS "Get Latest Version" not dowloading new files
Right click on the solution, select get latest version. Thank you for your feedback.
Read more >
[tfs] Why doesn't TFS get latest get the latest?
The answer is · 1. Exit Visual Studio · 2. Open a command window and navigate to the folder: "%localappdata%\Local\Microsoft\Team Foundation\" · 3....
Read more >
TFS “GetLatest” and “GetSpecific” version of code
On Monday Jim does a Get Latest (or Get Specific) of all files in a TFS project. This code is copied onto his...
Read more >
https://help.madcapsoftware.com/lingo11r2/Content/...
No information is available for this page.
Read more >
Navigate in Visual Studio Team Explorer - Azure DevOps
If data doesn't appear as expected, the first thing to try is to refresh your client. Refreshing your client updates the local cache...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found