3

I have gotten poshgit to work in plain vanilla powershell with no problems. When I run a:

git pull origin master

I get the following good message:

From github.com:bmccord/WebShot * branch master -> FETCH_HEAD Already up-to-date.

I have also set poshgit up to run form the NuGet Package Manager Console (since it is just a powershell inside of studio). However, when I run the same command, I get:

git.cmd : From github.com:bmccord/WebShot At line:1 char:4 + git <<<< pull origin master + CategoryInfo : NotSpecified: (From github.com:bmccord/WebShot:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError * branch master -> FETCH_HEAD

It looks like it is working, but I also get what looks like an error.

Has anyone seen this before?

Enrico Campidoglio
  • 56,676
  • 12
  • 126
  • 154
Brian McCord
  • 4,943
  • 7
  • 32
  • 44
  • I did. The answer marked as correct was right. The console was wrapping the error. The best way I've found to install git and posh-git on Windows is to use the Github for Windows installer. Many of my issues went away when I started using that. – Brian McCord Sep 17 '12 at 14:43
  • Did installing Github for Windows fix the issue with errors being wrapped in nuget package manager? – CatDadCode Oct 08 '12 at 21:09
  • I'm not sure. I just quit trying to have it setup in the nuget package manager console also. – Brian McCord Oct 08 '12 at 21:40

1 Answers1

3

You are getting the same message, except that the Package manager console is wrapping the error ( the message that you classify as "good" message, must have been in the standard error)

manojlds
  • 290,304
  • 63
  • 469
  • 417
  • 2
    Is there a way to stop/alter that behavior? It seems odd that it only shows up in the Package Manager Console and not Powershell normally. – Eric Amodio Jul 16 '12 at 16:42
  • I too am looking for a way to stop that nasty error wrapping. – CatDadCode Sep 17 '12 at 07:06
  • @EricAmodio and AlexFord: you can find some workaround in [this answer](http://stackoverflow.com/a/12789968/753737) for a [similar question](http://stackoverflow.com/q/12751261/753737). – edymtt Jan 26 '13 at 18:53