I am trying to take an existing git repository and check it in to TFS Preview using git-tf, and I am getting an error when I try to do the check in. Here is what I have done so far.
git clone -b https://github.com/.git to clone the branch that I want to check in. I want to check in a branch that isn't named master into TFS.
cd into local path of code.
git tf configure https://.tfspreview.com/DefaultCollection $/ Then, I configured git tf to configure the TFS connection.
git tf checkin Then, I got the following error:
Checking in to $/: 0% git-tf: no HEAD ref
So I then created a master branch since I didn't have one by doing the following: git branch -b master
Switched back to the branch I checked out: git checkout .
Tried the check in again: git tf checkin.
That got me past the first error. However, I got the following error, and I am not sure what to do about this.
Does anyone have any ideas on how to get past the error below from running git tf checkin?
Thanks!
Connecting to TFS...
Checking in to $/Sandbox/HammerheadGitTest/sCRM:
Exception in thread "main" java.lang.StackOverflowError
at java.io.RandomAccessFile.seek(Native Method)
at org.eclipse.jgit.storage.file.PackFile.read(PackFile.java:614)
at org.eclipse.jgit.storage.file.WindowCache.load(WindowCache.java:314)
at org.eclipse.jgit.storage.file.WindowCache.getOrLoad(WindowCache.java:393)
at org.eclipse.jgit.storage.file.WindowCache.get(WindowCache.java:204)
at org.eclipse.jgit.storage.file.WindowCursor.pin(WindowCursor.java:334)
at org.eclipse.jgit.storage.file.WindowCursor.copy(WindowCursor.java:203)
at org.eclipse.jgit.storage.file.PackFile.readFully(PackFile.java:526)
at org.eclipse.jgit.storage.file.PackFile.load(PackFile.java:684)
at org.eclipse.jgit.storage.file.PackFile.get(PackFile.java:227)
at org.eclipse.jgit.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:439)
at org.eclipse.jgit.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:172)
at org.eclipse.jgit.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:157)
at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:122)
at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:856)
at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:136)
at org.eclipse.jgit.revwalk.RevWalk.parseHeaders(RevWalk.java:965)
at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:814)
at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:725)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:260)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
at com.microsoft.gittf.core.util.CommitWalker.detectAutoSquashedPath(CommitWalker.java:286)
The last two lines continues over and over again for a long time.