Comment #3 on issue 2389 by
yuelinho...@gmail.com: Bad file number problem
https://code.google.com/p/tortoisegit/issues/detail?id=2389
@luoyonggang
1.
What version of TortoiseGit and Git for Windwo(msysgit) are you using?
Is Git for window 1.9.5?
2.
Is Git for window installed at defalut path?
3.
Could you please save/backup the following files to somewhere:
C:\Program Files (x86)\Git\libexec\git-core\git-pull
C:\Program Files (x86)\Git\libexec\git-core\git-sh-setup
C:\Program Files (x86)\Git\bin\sed.exe
C:\Program Files (x86)\Git\bin\tr.exe
Then, install Git for Window 1.9.5 (if it is already 1.9.5, then install
again)
Compare above files with new files. Check if they are identical.
---
Currently, the last test I did:
1. create a fake sed.exe
which files size is 0
(C:\Program Files (x86)\Git\bin\sed-fake.exe)
2. create a fake tr.exe
which files size is 0
(C:\Program Files (x86)\Git\bin\tr-fake.exe)
3. modify line 83 of "git-sh-setup"
sed -> sed-fake
4. modify line 268 of "git-pull"
tr -> tr-fake
then, the following message is created:
git.exe pull -v --no-rebase --progress "origin"
/libexec/git-core/git-sh-setup: line 83: /bin/sed-fake: Bad file number
From D:\TGit\_Issue\i2389\Remote
= [up to date] master -> origin/master
= [up to date] test -> origin/test
C:\Program Files (x86)\Git/libexec/git-core\git-pull: line 268:
/bin/tr-fake: Bad file number
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
git did not exit cleanly (exit code 1) (26208 ms @ 2014-12-25 21:46:11)
So, "Bad file number" might be the key.