]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
* ikiwiki-makerepo: Don't fail if the third argument ends in a slash.
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 24 Feb 2008 22:56:39 +0000 (17:56 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 24 Feb 2008 22:56:39 +0000 (17:56 -0500)
debian/changelog
ikiwiki-makerepo

index 73c872434d154a3921e55052ff45b9bbd03c6b1c..e094adf47e4672a4a52bdd175c30b79e080852d8 100644 (file)
@@ -49,6 +49,7 @@ ikiwiki (2.40) UNRELEASED; urgency=low
   * Fix links generated by preprocessor directives when previewing.
   * inline: When forcing urls absolute for rss feeds, skip mailto and other
     such urls.
+  * ikiwiki-makerepo: Don't fail if the third argument ends in a slash.
 
  -- Josh Triplett <josh@freedesktop.org>  Sun, 10 Feb 2008 13:18:58 -0800
 
index dd23b4638a88b76367e638719d4e58247b8edfed..a97c060c2a15d81f85a90f13722672c8c6bb94ea 100755 (executable)
@@ -25,7 +25,7 @@ if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then
                echo "repository $repository already exists, aborting" >&2 
                exit 1
        fi
-       repository="$(perl -e 'use Cwd q{abs_path}; print abs_path(shift)' $repository)"
+       repository="$(perl -e 'use Cwd q{abs_path}; $r=shift; $r=~s/\/*$//; print abs_path($r)' $repository)"
        if [ -z "$repository" ]; then
                echo "internal error finding repository abs_path" >&2
                exit 1