summaryrefslogtreecommitdiff
path: root/exporters
diff options
context:
space:
mode:
authorJustin Bogner <justin@justinbogner.com>2010-02-11 10:11:22 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2010-02-11 10:11:22 +0100
commit70ed66993b9a45fbd0b0cf7c8f21fd6be0d66062 (patch)
treea417bf2d9beed3330c8fb94550a7a04451c331f9 /exporters
parent09b9f451fd5fcaaa4ab2d6dc56c4f46460839a48 (diff)
downloadbzr-fastimport-70ed66993b9a45fbd0b0cf7c8f21fd6be0d66062.tar.gz
Don't bail for http://path/to/repo darcs remotes
Diffstat (limited to 'exporters')
-rwxr-xr-xexporters/darcs/git-darcs3
1 files changed, 2 insertions, 1 deletions
diff --git a/exporters/darcs/git-darcs b/exporters/darcs/git-darcs
index eb70338..3e7c157 100755
--- a/exporters/darcs/git-darcs
+++ b/exporters/darcs/git-darcs
@@ -42,7 +42,8 @@ add()
echo "There is already a darcs repo with that name"
exit
fi
- if [ ! -d $location/_darcs ]; then
+ repo=$location/_darcs
+ if [ ! -d $repo ] && ! wget --quiet --spider $repo; then
echo "Remote is not a darcs repository"
exit
fi