From 8a95323e07bc631740fee7037ffe51d5d7fb3c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 18 Aug 2019 07:41:00 +0200 Subject: [PATCH] RepositoryGit: fix caching issues (use all branches for timestamp) --- src/RepositoryGit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RepositoryGit.php b/src/RepositoryGit.php index e7949d7f..f7ae130d 100644 --- a/src/RepositoryGit.php +++ b/src/RepositoryGit.php @@ -24,7 +24,7 @@ class RepositoryGit extends RepositoryBase { } function timestamp () { - $ts = (int)shell_exec("cd " . escapeShellArg($this->path) . "; git log -1 {$this->branchEsc} --pretty=format:%ct"); + $ts = (int)shell_exec("cd " . escapeShellArg($this->path) . "; git log -1 --all --pretty=format:%ct"); return $ts; }