aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-09 02:42:17 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-09 02:42:17 +0200
commit18a63818b75c1ed7430ae38cc61f62be64064883 (patch)
tree0016cc0ccdee24cc6f60d28ef732ebafe1cceb84 /MgaRepo
parent800d469cf1c714ef40d53c42431b232209fdc470 (diff)
downloadmgarepo-18a63818b75c1ed7430ae38cc61f62be64064883.tar
mgarepo-18a63818b75c1ed7430ae38cc61f62be64064883.tar.gz
mgarepo-18a63818b75c1ed7430ae38cc61f62be64064883.tar.bz2
mgarepo-18a63818b75c1ed7430ae38cc61f62be64064883.tar.xz
mgarepo-18a63818b75c1ed7430ae38cc61f62be64064883.zip
verify remote repository url at beginning of init()
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/MgaRepo/git.py b/MgaRepo/git.py
index ae2db6e..ab89b25 100644
--- a/MgaRepo/git.py
+++ b/MgaRepo/git.py
@@ -53,6 +53,9 @@ class GIT(VCS):
return self.update(targetpath, clone=True, **kwargs)
def init(self, url, targetpath, fullnames=True, **kwargs):
+ # verify repo url
+ execcmd("svn", "info", url)
+
topurl = dirname(url)
trunk = basename(url)
tags = "releases"