Do a git pull before bumping local version.
[fedora-ocaml-rebuild.git] / Goalfile
index 98a56d0..cafef1d 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -120,6 +120,11 @@ goal rebuild (pkg) =
         $koji wait-repo %side-tag --build=$nvr
     done
 
+    # Make sure the local directory is up to date.
+    # This should also fail if there are local changes, which
+    # would need to be corrected/integrated by hand.
+    git pull
+
     # If the specfile doesn't have the magic string then add
     # that now.
     if ! grep -sq %rebuild-name $specfile; then