ingydotnet / git-hub

Do GitHub operations from the `git` command
MIT License
794 stars 62 forks source link

Weird behaviour when redirecting stdout of `git hub forks`, apparently repo specific too. #256

Open andreas-kupries opened 5 years ago

andreas-kupries commented 5 years ago

Installed git hub is commit a4b5580678f18a9f91c0783250f2850383be58ec.

When I redirect stdout for a specific repository git hub forks exits with status 1. For a different repository the status is 0. When not redirecting stdout the problematic repository is not a problem anymore.

Removing the --git-dir option I used and the behaviour is all the same. (The CWD is outside any git checkout)

As such I am suspecting that git hub forks has an issue with the repository itself, and not the local checkout for it. Trying the command on a different machine and I see the same issue.

Something in the intersection of the specific repository (mattijk/consio) and stdout a terminal vs redirected to a file for git hub forks is trouble.

Here is my session for one the boxes, still all with --git-dir.

aku@tagetarl:~/Data/My/Mirror> echo $TERM
xterm

aku@tagetarl:~/Data/My/Mirror> 2> E > L git --git-dir /data/Mirror/tcl/store/330/source.git hub forks --raw flightaware/TclProDebug ; echo $?
0

aku@tagetarl:~/Data/My/Mirror> 2> E > L git --git-dir /data/Mirror/tcl/store/733/source.git hub forks --raw mattijk/consio ; echo $?
1

aku@tagetarl:~/Data/My/Mirror> 2> E git --git-dir /data/Mirror/tcl/store/330/source.git hub forks --raw flightaware/TclProDebug ; echo $?
apnadkarni/TclProDebug
h0nza/TclProDebug
0

aku@tagetarl:~/Data/My/Mirror> 2> E git --git-dir /data/Mirror/tcl/store/733/source.git hub forks --raw mattijk/consio ; echo $?
0