diff options
author | Norbert Preining <preining@logic.at> | 2017-05-06 11:20:06 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2017-05-06 11:20:06 +0000 |
commit | 00b29467f74723366194d8208048a82af2a28d0f (patch) | |
tree | 647c7ca84aff29e57605e322b5551c3d04671cf7 /Master | |
parent | 806d3ac4788e116f6b79c8cd627a68873d55285b (diff) |
fix TLREE from_git to properly report revisions
git-svn-id: svn://tug.org/texlive/trunk@44221 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/tlpkg/TeXLive/TLTREE.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/tlpkg/TeXLive/TLTREE.pm b/Master/tlpkg/TeXLive/TLTREE.pm index 8676008937d..016bb3623ed 100644 --- a/Master/tlpkg/TeXLive/TLTREE.pm +++ b/Master/tlpkg/TeXLive/TLTREE.pm @@ -80,7 +80,7 @@ sub init_from_git { my %files; my @lines; - my @foo = `cd $svnroot; git log --pretty=format:COMMIT=%h --name-only --diff-filter=A`; + my @foo = `cd $svnroot; git log --pretty=format:COMMIT=%h --name-only`; if ($retval != 0) { $retval /= 256 if $retval > 0; tldie("TLTree: git log in $svnroot returned $retval, stopping.\n"); @@ -97,7 +97,9 @@ sub init_from_git { $rev++; next; } else { - $files{$l} = $rev; + # we only use the first occurrence of $f from the top, + # that is the most recent change + $files{$l} = $rev if (not(defined($files{$l}))); } } @@ -114,7 +116,7 @@ sub init_from_git { sub init_from_gitsvn { my $self = shift; my $svnroot = $self->{'svnroot'}; - my @foo = `cd $svnroot; git log --pretty=format:%h --name-only --diff-filter=A`; + my @foo = `cd $svnroot; git log --pretty=format:%h --name-only`; chomp(@foo); my $retval = $?; if ($retval != 0) { |