This project is read-only.

git-tf: comment must not be empty after doing a checkin --deep

May 22, 2013 at 11:19 PM
Hi,

I've cloned from a Visual Studio 2010 repo, using:
git tf clone urlTo2010TfsRepo myProject --deep
I've than cloned a git repo from that repo using:
git clone urlTo2010GitRepo
Than I've configured this new Git repo to be linked with my Visual Studio 2012 repo:
git tf configure urlTo2012GitRepo myProject --deep
Now I'm trying to do a checkin from my newly cloned git repo to the 2012 TFS repo using:
git tf checkin --deep
And it gives me this error:
git-tf: comment must not be empty
We don't have any check-in policy on our TFS server. git-tf says commit 8427fd6 before returning the error. This is the first commit that does not have a comment on it. Say we have 100 commits, commits 1 to 8 have a comment, and commit 9th is 8427fd6, and does not have a comment on it.

Any idea?
Thank you
May 23, 2013 at 4:26 PM
Hi tandars,

Thanks for finding. This a Git-TF requirement that comment cannot be empty. I believe we should get rid of it. Could you please file a bug for that?

Meantime, to unblock you, I would suggest to specify the --metadata argument in your check-in command, i.e.
git tf checkin --deep --metadata
Would it work out for you?

Thanks,
Alex
May 24, 2013 at 4:38 PM
I've opened an issue about it here: https://gittf.codeplex.com/workitem/97

I did not try the --metadata option, instead I went back to my TFS 2010 repo, and changed all empty comment to have the text: No comments, in it instead, then re-did the above procedure and it worked nicely.

Thank You.
Jun 26, 2013 at 4:52 PM
Hi tandars,

The issue has been resolved in the latest commit.

Thanks,
Alex