Find a file
Jens Lehmann 3decb8e0ac git-gui: tolerate major version changes when comparing the git version
Since git 2.0.0 starting git gui in a submodule using a gitfile fails with
the following error:

   No working directory ../../../<path>

   couldn't change working directory
   to "../../../<path>": no such file or
   directory

This is because "git rev-parse --show-toplevel" is only run when git gui
sees a git version of at least 1.7.0 (which is the version in which the
 --show-toplevel option was introduced). But "package vsatisfies" returns
false when the major version changes, which is not what we want here.

Fix that for both places where the git version is checked using vsatisfies
by appending a '-' to the version number. This tells vsatisfies that a
change of the major version is not considered to be a problem, as long as
the new major version is larger. This is done for both the place that
caused the reported bug and another spot where the git version is tested
for another feature.

Reported-by: Chris Packham <judge.packham@gmail.com>
Reported-by: Yann Dirson <ydirson@free.fr>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
2014-06-13 19:03:48 +01:00
lib git-gui: show staged submodules regardless of ignore config 2014-06-13 18:27:33 +01:00
macosx git-gui: Improve font rendering on retina macbooks 2013-08-27 20:06:40 +01:00
po git-gui: chmod +x po2msg, windows/git-gui.sh 2014-01-18 17:06:41 +00:00
windows git-gui: chmod +x po2msg, windows/git-gui.sh 2014-01-18 17:06:41 +00:00
.gitattributes git-gui: set whitespace warnings appropriate to this project 2011-11-30 11:35:28 +00:00
.gitignore git-gui: Honor a config.mak in git-gui's top level 2007-10-13 22:14:14 -04:00
git-gui--askpass git-gui: ensure correct application termination in git-gui--askpass 2010-08-18 23:19:24 +01:00
git-gui.sh git-gui: tolerate major version changes when comparing the git version 2014-06-13 19:03:48 +01:00
GIT-VERSION-GEN git-gui 0.19 2014-01-18 17:29:34 +00:00
Makefile git-gui: correct spelling errors in comments 2013-11-15 20:44:08 +00:00