Go to file
Jens Lehmann b3f0c5c04e 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>
Helped-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Tested-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-05-19 10:12:45 -07:00
lib git-gui: correct spelling errors in comments 2013-11-15 20:44:08 +00: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-05-19 10:12:45 -07: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