]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: trashman: spotx: ensure git origin is the right one (2)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 12 Jan 2024 18:32:02 +0000 (15:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 12 Jan 2024 18:32:02 +0000 (15:32 -0300)
share/trashman/spotx/unix/linux/install

index 879c317cdb838d459fcd5da900fc52be6240dfba..2756049b15c5a62c4b37823c83820468b1cd9ab3 100755 (executable)
@@ -20,9 +20,9 @@ fi
 #git -C /usr/local/src/spotx pull
 
 # Checkout an specific version
-git remote rm origin
-git remote add origin $REPO
-git fetch origin
+git -C /usr/local/src/spotx remote rm origin
+git -C /usr/local/src/spotx remote add origin $REPO
+git -C /usr/local/src/spotx fetch origin
 git -C /usr/local/src/spotx checkout $COMMIT || exit 1
 
 # Install