From 0a4fb1f7fe8808acff9607a341c4beb55145d5d0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 14 May 2012 16:36:51 +0200 Subject: [PATCH] url fixes --- misc/tools/conflict-rss.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/misc/tools/conflict-rss.sh b/misc/tools/conflict-rss.sh index c9590029..fb10ebd6 100755 --- a/misc/tools/conflict-rss.sh +++ b/misc/tools/conflict-rss.sh @@ -39,9 +39,9 @@ to_rss() - Merge conflicts for $name + XonCW: $name http://git.xonotic.org/ - ... + Xonotic Conflict Watch for branches by $name 3600 $datetime @@ -86,6 +86,15 @@ if [ -z "$outdir" ]; then set -- fi +case "$repodir" in + '') + repo=`git config remote.origin.url | cut -d / -f 4-` + ;; + *) + repo=$repodir # FIXME + ;; +esac + case "$action" in --init) mkdir -p "$outdir" @@ -141,7 +150,7 @@ case "$action" in n=divVerent ;; esac - echo "$out" | to_rss "$outdir" "$n" "$masterhash" "$HASH" "$b" "$repodir" + echo "$out" | to_rss "$outdir" "$n" "$masterhash" "$HASH" "$b" "$repo" echo >&2 " CONFLICT" else echo >&2 " ok" -- 2.39.2