From b0fdeef904ec4fbaddc34847fb8f135cfbd31646 Mon Sep 17 00:00:00 2001 From: "John H. Robinson, IV" Date: Fri, 9 Nov 2012 15:05:52 -0800 Subject: [PATCH] Allow comments in list of Subversion repositories Repository list ignores comments (prepended with #) and skips blank lines --- git-svn-migrate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-svn-migrate.sh b/git-svn-migrate.sh index 1fd7a5f..3c44837 100755 --- a/git-svn-migrate.sh +++ b/git-svn-migrate.sh @@ -175,7 +175,7 @@ if [[ -e $tmp_destination ]]; then echo "Temporary repository location \"$tmp_destination\" already exists. Exiting." >&2; exit 1; fi -while read line +sed -e 's/#.*//; /^[[:space:]]*$/d' $url_file | while read line do # Check for 2-field format: Name [tab] URL name=`echo $line | awk '{print $1}'`; @@ -242,4 +242,4 @@ do done echo "- Conversion completed at $(date)." >&2; -done < $url_file +done