summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 04ee14a..9bb01f1 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -115,6 +115,12 @@ mysql_add_package_source() {
commit_time=$(
git -C "${repo_path}" log -n 1 --pretty=format:%ct "${old_git_revision}${git_revision}" -- "${pkgbuild}"
)
+ if [ -z "${commit_time}" ]; then
+ # We may have modified git_mod_revision!
+ commit_time=$(
+ git -C "${repo_path}" log -n 1 --pretty=format:%ct "${git_revision}" -- "${pkgbuild}"
+ )
+ fi
else
uses_upstream=0
commit_time=$(date '+%s')