0

I'm using git-tfs, and much of its functionality works fine. I can pull, and I can use the checkintool. But I can't create shelvesets. When I try to git tfs shelve ShelveSetName, I get this error:

TF14045: The identity MYDOMAIN\Joe White is not a recognized identity.

It looks like, for some bizarre reason, git tfs shelve is trying to authenticate against my given name ("Joe White", space included) instead of my user name, so of course it fails to authenticate because user names can't have spaces in them.

How can I get git tfs shelve to authenticate correctly, i.e., using my currently-logged-in Windows user credentials?

Joe White
  • 94,807
  • 60
  • 220
  • 330

1 Answers1

0

Have your tried using the --username option when shelving? Or turned on debug with the -d option? If that doesn't work it's likely a bug. git-tfs is still fairly new and the authentication options got reworked a fair bit recently and it's possible the shelve command got overlooked now that it's not the main approach for committing.

If you can't get it to work log an issue with the debug log on the main github site and one of the contributors will no doubt try and fix it for you quickly.

Richard Banks
  • 12,456
  • 3
  • 46
  • 62
  • I tried appending `--username myusername`, but that just displayed the help content (same output as `git tfs help shelve`), so it must have been an unrecognized option. That documentation doesn't mention a `--username` option, btw. I also tried `--username=myusername`, but that said `No TFS parents found!`, which seems odd given that I can use checkintool just fine. Any further suggestions, or should I write this up as a bug? – Joe White Aug 29 '11 at 14:46
  • Put it up as a bug. I'll also check the code when I get a chance. – Richard Banks Sep 02 '11 at 04:55
  • Written up: https://github.com/spraints/git-tfs/issues/81. According to the comments there, it's fixed in the latest code, but there isn't an updated binary yet. – Joe White Sep 04 '11 at 02:44
  • Is the fixed binary available now? I'm getting `No TFS parents found!` while doing `git tfs checkintool --build-default-comment` – IsmailS May 31 '12 at 14:46