[library-web/oscp] Allow updates against the local git checkout



commit 59f29733af5156bc0d4e0cf87c7c2a54fe090173
Author: Andrea Veri <av gnome org>
Date:   Mon Feb 24 13:55:59 2020 +0000

    Allow updates against the local git checkout

 lgo/release-notes-gen | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/lgo/release-notes-gen b/lgo/release-notes-gen
index 015a220..24dd428 100755
--- a/lgo/release-notes-gen
+++ b/lgo/release-notes-gen
@@ -12,7 +12,13 @@ for branch in ${branches[@]}; do
     if [[ -f $TGZ ]]; then
         continue
     else
-      git clone ${REPO} -b ${branch} "${DIR}-${VERSION}"
+      if [[ ! -d "${DIR}-${VERSION}" ]]; then
+        git clone ${REPO} -b ${branch} "${DIR}-${VERSION}"
+      else
+        cd "${DIR}-${VERSION}"
+        git reset --hard
+        git pull --all --rebase
+      fi
     
       cd "${DIR}-${VERSION}/help"
       for LANG in $(find -maxdepth 1 -type d); do


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]