<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,14 +35,15 @@ function do_clone()
 			branchpath=$(echo $branch|cut -f1 -d/)
 			echo $tags|grep $branchpath &gt;/dev/null 2&gt;&amp;1 &amp;&amp; tags=$branchpath
 			echo $brch|grep $branchpath &gt;/dev/null 2&gt;&amp;1 &amp;&amp; brch=$branchpath
-			call git svn clone &quot;$revision&quot; &quot;$module&quot; -T trunk -b $brch -t $tags &quot;$local_directory&quot;
-			if [ -n &quot;$revision&quot; ]; then
-				call git svn clone &quot;$revision&quot; &quot;$remote_url&quot; &quot;$local_directory&quot;
+
+			if [ &quot;$module&quot; = &quot;$remote_url&quot; ]; then
+				# URL does not contains any trunk, branches or tags part, so we dont need
+				# additional options for git-svn
+				call git svn clone &quot;$revision&quot; &quot;$module&quot; &quot;$local_directory&quot;
 			else
-				call git svn clone &quot;$remote_url&quot; &quot;$local_directory&quot;
+				call git svn clone &quot;$revision&quot; &quot;$module&quot; -T trunk -b $brch -t $tags &quot;$local_directory&quot;
 			fi
 
-
 		fi
 		(
 			branch=&quot;$(echo ${branch}|sed 's,/$,,')&quot;</diff>
      <filename>git-svn-clone-externals</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>836ad17fe1cb6421ad63cf203e2e565f7904e220</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Artemenko</name>
    <email>svetlyak.40wt@gmail.com</email>
  </author>
  <url>http://github.com/andrep/git-svn-clone-externals/commit/5c904226ceeb66a52ad2ce4ef859c03368b7f2d7</url>
  <id>5c904226ceeb66a52ad2ce4ef859c03368b7f2d7</id>
  <committed-date>2009-08-05T02:00:39-07:00</committed-date>
  <authored-date>2009-08-05T02:00:39-07:00</authored-date>
  <message>Fixed cloning repository from URL without trunk, branches or tags part.</message>
  <tree>9a52f0f603a676df249f34d6b6b26ed483f9ba0c</tree>
  <committer>
    <name>Alexander Artemenko</name>
    <email>svetlyak.40wt@gmail.com</email>
  </committer>
</commit>
