Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We are using git for version control now, can't use svn/git-svn to ge…
…t a rev.
- Loading branch information
Showing
2 changed files
with
5 additions
and
11 deletions.
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
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#! perl | ||
|
||
# Get the SVN revision using svn or git-svn | ||
my $cmd = 'svn info'; | ||
$cmd = 'git svn info README' if -d '.git'; | ||
# Get the git revision | ||
my $cmd = 'git rev-parse master'; | ||
my $out = `$cmd`; | ||
$out =~ /Revision: (\d+)/; | ||
print $1; | ||
chomp $out; | ||
print $out; |