andsens / homeshick

git dotfiles synchronizer written in bash
MIT License
2.11k stars 145 forks source link

failed test in git 2.3: track file in new folder with mocked git version < 1.8.2 #133

Closed andsens closed 9 years ago

andsens commented 9 years ago

Olav mailed in possible bug when running git 2.3. Excerpt from mail below:

I noticed that, when run with the latest git version 2.3.0, there is a test case in homeshick that fails with the following error:

 ✗ track file in new folder with mocked git version < 1.8.2
   (in test file suites/track.bats, line 266)
     `[ ! -e $HOMESICK/repos/rc-files/home/.folder/ignored.swp ]' failed
        track Unable to add file to git. Git says: The following paths are
ignored by one of your .gitignore files:
   home/.folder/ignored.swp
   Use -f if you really want to add them.
   /tmp/tmp.7cCtePoDS4/home/.homesick/repos/homeshick/bin/homeshick: line 8:
mock_git_version: command not found

Using git 2.1.4, this problem does not appear, so perhaps git changed behaviour recently?

I figured you might want to try to reproduce the issue, and perhaps adjust the test case if you find a bug?