jacogr / atom-git-control

Not maintained :(
MIT License
227 stars 70 forks source link

Error when pulling from upstream on windows machine #224

Open stefanleh opened 7 years ago

stefanleh commented 7 years ago
> git pull upstream $(git branch | grep '^*' | sed -n 's/*[ ]*//p')
sed: -e Ausdruck #1, Zeichen 1: Unbekannter Befehl: `''
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

I've got sed from: http://gnuwin32.sourceforge.net/packages/sed.htm

Best regards, Stefan

nsrosenqvist commented 7 years ago

Have the same error on Ubuntu 16.10

MobileAZN commented 7 years ago

Also in Ubuntu 14.04 and 14.10.

silverkorn commented 7 years ago

Actually, I got similar issue but with grep (probably also sed) since I do not install Git for Windows with all of the Unix commands in my %PATH% to avoid problems with other applications for commands like find.

As a workaround on my end, I create a batch file in my .\cmd directory, which is part of my %PATH%, with the name of the executable command from .\usr\bin, so it acts as a symlink without the need of administrator access.

Here the batch file, just copy this for every executable you need to access and change the name of the .bat of .cmd file to the one you need:

@ECHO OFF
"%~dp0\usr\bin\%~n0.exe" %*