diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-08-24 14:19:55 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-08-24 14:48:07 -0700 |
commit | 5c2349dfc8d24fbd2dbe89fd96fc62b211370f27 (patch) | |
tree | ce12fc88a7b901ecb800553fc600d04806a9d239 /bin/locmaint | |
parent | 47beca7b44abb33c9dd23d87a27f82dadc6bc547 (diff) | |
download | dotfiles-5c2349dfc8d24fbd2dbe89fd96fc62b211370f27.tar.gz |
avoid including .git in the clone URI
Diffstat (limited to 'bin/locmaint')
-rwxr-xr-x | bin/locmaint | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/locmaint b/bin/locmaint index d52d2a48..fd04faeb 100755 --- a/bin/locmaint +++ b/bin/locmaint @@ -325,10 +325,10 @@ sub do_coldbkup { # athena main repos mkdir catfile($gitbk, "athena"); my @athena_repos = map { - if (m|^/srv/git/repositories/priv/(.+)$|) { - { uri => "athenap:$1", dir => "priv/$1" } - } elsif (m|^/srv/git/repositories/(.+)$|) { - { uri => "athena:$1", dir => "$1" } + if (m|^/srv/git/repositories/priv/(.+)\.git$|) { + { uri => "athenap:$1", dir => "priv/$1.git" } + } elsif (m|^/srv/git/repositories/(.+)\.git$|) { + { uri => "athena:$1", dir => "$1.git" } } } `ssh athena find /srv/git/repositories -name "*.git" 2>/dev/null`; backup_repo($_->{uri}, catfile($gitbk, "athena", $_->{dir})) |