hydra: do not use refs/heads while checking for latest commit in branch

[?]
Sep 7, 2010, 2:56 PM
3I6BNF4SWOQLXZPBESHH4S743QEMOXUJR4IKFRVQ3PO6SUGLPIAAC

Dependencies

  • [2] C7CXMZ66 hydra: do not perform git clone every time. in stead work on local clone and pull
  • [3] BK24VA6Q * for git inputs, check latest revision of branch (defaults to master for now), if there is change, only use input if last checkout was > hour ago.
  • [4] KQS7DSKJ * Clean up indentation.
  • [5] CHQEG6WY Hydra/29: Added timeout to svn/git checkouts, job evaluation
  • [6] JTRG7RDQ add support for git as jobinput
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 321
    [2.624][2.624:783]()
    ("git", "ls-remote", $clonePath, "refs/heads/".$branch));
    die "Cannot get head revision of Git branch '$branch' at `$uri':\n$stderr" unless $res1;
    [2.624]
    [3.515]
    ("git", "ls-remote", $clonePath, $branch));
    die "Cannot get head revision of Git branch '$branch' at `$uri':\n$stderr" unless $res1 ;
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 325
    [3.516][3.309:359]()
    (my $revision, my $ref) = split ' ', $stdout;
    [3.516]
    [3.359]
    my ($first) = split /\n/, $stdout;
    (my $revision, my $ref) = split ' ', $first;