aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-01-12 15:30:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-01-12 15:30:20 -0300
commit6d8b37b027ff67972a96d1ac6f3408fa71ff9bad (patch)
tree7a1ae75b0e9c4f673ef5df7d4cfb697a3e64a99b
parent9c4a744878a1d3a143e18a338a07e6cbdcb3dd01 (diff)
downloadtrashman-6d8b37b027ff67972a96d1ac6f3408fa71ff9bad.tar.gz
trashman-6d8b37b027ff67972a96d1ac6f3408fa71ff9bad.tar.bz2
Fix: trashman: spotx: ensure git origin is the right one
-rwxr-xr-xshare/trashman/spotx/unix/linux/install3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/trashman/spotx/unix/linux/install b/share/trashman/spotx/unix/linux/install
index 80b471d..879c317 100755
--- a/share/trashman/spotx/unix/linux/install
+++ b/share/trashman/spotx/unix/linux/install
@@ -20,6 +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 checkout $COMMIT || exit 1
# Install