Skip to content

Commit

Permalink
run bootstrap if .gnulib is not present
Browse files Browse the repository at this point in the history
If .gnulib is deleted unexpectedly, autogen.sh will fail with message:

fatal: ambiguous argument '.gnulib': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

which is actually given by git diff .gnulib, which doesn't exist.

In the case to run bootstrap to create .gnulib.
  • Loading branch information
Hu Tao authored and ebblake committed Nov 21, 2012
1 parent 283aafd commit f2f9ae4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ bootstrap_hash()
# the required file po/Makevars.
# Only run bootstrap from a git checkout, never from a tarball.
if test -d .git; then
curr_status=.git-module-status
t=$(bootstrap_hash; git diff .gnulib)
curr_status=.git-module-status t=
if test -d .gnulib; then
t=$(bootstrap_hash; git diff .gnulib)
fi
case $t:${CLEAN_SUBMODULE+set} in
*:set) ;;
*-dirty*)
Expand Down

0 comments on commit f2f9ae4

Please sign in to comment.