From 81092fa4520971697d47e6a5d498d3cbd785adaa Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 May 2014 13:08:03 -0400 Subject: Fix setting the description --- git-mirror | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git-mirror b/git-mirror index d09dfb6..76763c1 100755 --- a/git-mirror +++ b/git-mirror @@ -30,8 +30,7 @@ mirror-repo() { repo=$1 canonical_path="$(config-get "repo.${repo}.canonical")" local_path="$(config-get "repo.${repo}.local")" - description="$(config-get "repo.${repo}.description")" - [[ -n $description ]] || description="mirror of ${canonical_path}" + description="$(config-get "repo.${repo}.description" || printf 'mirror of %s' "${canonical_path}")" gitget -f -n "$repo" bare "$canonical_path" "$local_path" printf '%s\n' "$description" > "$local_path/description.tmp" -- cgit v1.2.3-2-g168b