Use git rev-list --count

[?]
Nov 14, 2017, 3:18 PM
SQATLPINBB7KPNP3PHWQNYDQ232X23CLFNLOJI2EUDC52SWRXCGQC

Dependencies

  • [2] 3BTJRSU3 GitInput.pm: Don't do a chdir to the Git clone
  • [3] JAH3UPWA Support revision control systems via plugins
  • [4] B7KDPCRL Prevent inputs from being garbage collected during evaluation

Change contents

  • replacement in src/lib/Hydra/Plugin/GitInput.pm at line 236
    [3.10066][2.2251:2356]()
    my $revCount = scalar(split '\n', grab(cmd => ["git", "rev-list", "$revision"], dir => $clonePath));
    [3.10066]
    [2.2356]
    my $revCount = grab(cmd => ["git", "rev-list", "--count", "$revision"], dir => $clonePath, chomp => 1);