remote forking: use the original http/https url in description
[phorkie.git] / src / phorkie / Forker.php
index 3425a72283eefaa2f758301be6863bc8e155a178..f4901ed9251e4720e54e7251518c3ceca2eb22d7 100644 (file)
@@ -10,12 +10,12 @@ class Forker
         return $new;
     }
 
-    public function forkRemote($url)
+    public function forkRemote($cloneUrl, $originalUrl)
     {
-        $new = $this->fork($url);
+        $new = $this->fork($cloneUrl);
         file_put_contents(
             $new->gitDir . '/description',
-            'Fork of ' . $url
+            'Fork of ' . $originalUrl
         );
         return $new;
     }