-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updatemanpages.pl: error out on too old git version
- Loading branch information
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
# Copyright (C) 1998 - 2017, Daniel Stenberg, <[email protected]>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
|
@@ -235,6 +235,13 @@ sub processfile{ | |
printargs(); | ||
} | ||
|
||
# check to see that the git command works, it requires git 2.6 something | ||
my $gitcheck = `git log -1 --date="format:%B %d, %Y" $dirlist[0] 2>/dev/null`; | ||
if(length($gitcheck) < 1) { | ||
print "git version too old or $dirlist[0] is a bad argument\n"; | ||
exit; | ||
} | ||
|
||
# Look in each directory. | ||
|
||
my $dir_handle; | ||
|