1
Vote

git-tf: null

description

Hi,

I had started a TFS to GIT migration and everything seemed to be working fine. But when it reached around 41%, it just gave the output 'git-tf: null', and stopped. The GIT repo to which it was cloning into was deleted automatically too, so I have no trace of anything left whatsoever.

By investigating I found that this was a bug until 2.0.2.20130214(http://gittf.codeplex.com/workitem/98), but I thought it is worth sharing. Has it still not been fixed?

I am attaching the screenshot of the output. Following is the stacktrace from the log files:
2016-08-03 22:05:57,165 ERROR [main] (git-tf) Error executing task CloneTask
java.lang.NullPointerException
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.handleStatus(VersionControlClient.java:3515)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.beginDownloadRequest(VersionControlClient.java:3361)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.downloadFileToStreamsInternal(VersionControlClient.java:2827)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.downloadFileToStreams(VersionControlClient.java:2688)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.downloadFileToStream(VersionControlClient.java:2607)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.downloadFile(VersionControlClient.java:2491)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.downloadFile(VersionControlClient.java:2411)
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Item.downloadFile(Item.java:292)
at com.microsoft.gittf.core.impl.TfsVersionControlService.downloadFile(TfsVersionControlService.java:81)
at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.createBlob(CreateCommitForChangesetVersionSpecTask.java:252)
at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.run(CreateCommitForChangesetVersionSpecTask.java:180)
at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145)
at com.microsoft.gittf.core.tasks.CloneTask.run(CloneTask.java:232)
at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145)
at com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:216)
at com.microsoft.gittf.client.clc.Main.main(Main.java:328)
Thanks,
Waqas

file attachments

comments

arukhlin wrote Aug 6, 2016 at 1:50 AM

Hi Waqas,

Did you try the latest version of the utility? I mean, not the 2.0.3 officially released, but the one built from the latest sources? The issue might be already fixed. At least I can see the commit 86bc5197a4bd that resolves the issue #130 - NullPointerException downloading damaged file history from TFS. It looks very similar to yours.

Alex