From 66a9328c0626556937bca5f96b6e0fb832bf3c2f Mon Sep 17 00:00:00 2001 From: Simone Rota Date: Sat, 21 Oct 2006 22:58:59 +0200 Subject: tlcacher: fixed branch selection for git caching --- timeline/tlcacher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeline/tlcacher.php b/timeline/tlcacher.php index a71fd75..277eb7c 100755 --- a/timeline/tlcacher.php +++ b/timeline/tlcacher.php @@ -188,6 +188,7 @@ if ($chline != "") { /******************* Git events ***********************/ foreach ($git_repos as $repo) { + $branch = ""; if (strpos($repo, ":") !== FALSE) { $tmp = explode(':', $repo); $repo = $tmp[0]; @@ -195,7 +196,6 @@ foreach ($git_repos as $repo) { } $pos = strpos($repo, "/"); $reponame = substr($repo, $pos+1); - $branch = ""; $last_git = last_cached_git($reponame); $out = array(); $res = 0; -- cgit v1.2.3