diff mbox

[Cbuildv2/get_source,09/17] lib/common.sh: echo ${url} in leg that processes direct non .git repositories.

Message ID 1382129579-5777-10-git-send-email-ryan.arnold@linaro.org
State New
Headers show

Commit Message

Ryan S. Arnold Oct. 18, 2013, 8:52 p.m. UTC
From: "Ryan S. Arnold" <ryan.arnold@linaro.org>

This support svn repository urls.  Also add new testscase for git repositories
that don't end in .git.

Contrary to the comment added here, in a later patch in this set, <repo>.git@revision is supported.
---
 lib/common.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/common.sh b/lib/common.sh
index 64d0a30..ff07d62 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -404,9 +404,13 @@  get_source()
 	    return 0
 	fi
     else
-	# TODO: Add a testcase for this leg?
+	# This leg captures direct urls that don't end in .git.  This include
+	# svn directories and git repositories that don't end in .git.
+	# Unfortunately this means that <repo>@<revision> isn't
+	# supported.
 	if test `echo $1 | egrep -c "\.git"` -eq 0; then
 	    local url=$1
+	    echo "${url}"
 	    return 0
 	fi
     fi