summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-11-15 08:11:11 -0700
committerSean Whitton <spwhitton@spwhitton.name>2015-11-15 08:11:11 -0700
commit12e62af5c29cdb293ea3cf0c357be84f16ba4462 (patch)
treee835919b908fc56d24982f7d30cd75d71d10d50d
parent748ab94e59caef91866554b6aa2b4765d9c1d9dc (diff)
downloaddotfiles-12e62af5c29cdb293ea3cf0c357be84f16ba4462.tar.gz
fix athena URLs in coldbkup to work with gitbk()
Otherwise the folder names on the backup medium are wrong and git gives strange errors like this: error: internal error: refs/heads/master is not a valid packed reference!
-rwxr-xr-xbin/coldbkup4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/coldbkup b/bin/coldbkup
index 993dab5c..00f7aeec 100755
--- a/bin/coldbkup
+++ b/bin/coldbkup
@@ -72,9 +72,9 @@ for repo in $repos; do
status processing $repo from athena
if [ "$repo" = "priv.git" -o "$repo" = "annex.git" -o "$repo" = "rt.git" ]; then
# might need a ssh:// and a /~/ in here to work with gcrypt
- gitbk gcrypt::git@spwhitton.name:${repo%.*} $DEST/athena
+ gitbk gcrypt::git@spwhitton.name:/home/git/$repo $DEST/athena
else
- gitbk git@spwhitton.name:${repo%.*} $DEST/athena
+ gitbk git@spwhitton.name:/home/git/$repo $DEST/athena
fi
done