Use git fetch --all to update local clone in stead of git pull. Also, do not use --branch in initial clone.

[?]
Apr 5, 2012, 1:49 PM
PNPT3Y7RR5WA7DYUKXAF7SE4TE5GUEL65XMRYNL7GWVCEFT653LQC

Dependencies

  • [2] UO67NQMR Change `fetchInputGit' to do `git clone -b BRANCH' instead of `git clone'.
  • [3] CHQEG6WY Hydra/29: Added timeout to svn/git checkouts, job evaluation
  • [4] 3I6BNF4S hydra: do not use refs/heads while checking for latest commit in branch
  • [5] BMSQD2ZH Indentation
  • [6] 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.
  • [7] C7CXMZ66 hydra: do not perform git clone every time. in stead work on local clone and pull
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 331
    [3.271][2.62:132]()
    ("git", "clone", "--branch", $branch, $uri, $clonePath));
    [3.271]
    [3.320]
    ("git", "clone", $uri, $clonePath));
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 338
    [3.175][3.457:483]()
    ("git", "pull"));
    [3.175]
    [3.483]
    ("git", "fetch", "--all"));