[library-web/oscp] Specify branch to pull



commit afc69fed77a1297ceb5e0cb6af26adf3fd1c6747
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Mar 10 15:54:51 2020 +0100

    Specify branch to pull

 lgo/release-notes-gen | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lgo/release-notes-gen b/lgo/release-notes-gen
index 0f94adb..978e8ab 100755
--- a/lgo/release-notes-gen
+++ b/lgo/release-notes-gen
@@ -12,9 +12,10 @@ for branch in ${branches[@]}; do
     if [[ ! -d "${DIR}-${VERSION}" ]]; then
         git clone ${REPO} -b ${branch} "${DIR}-${VERSION}"
     else
-        cd "${DIR}-${VERSION}"
+        pushd "${DIR}-${VERSION}"
         git reset --hard
-        git pull --all
+        git pull origin ${branch}
+        popd
     fi
 
     pushd "${DIR}-${VERSION}/help"


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