<div dir="ltr">I tried with the latest codebase and could clone a repository on my local filesystem without problem (the path needs to be the folder containing the git repository&#39;s .git folder).<div><br></div><div>As for your architecture; we don&#39;t support what you describe - which appears to be a distributed git installation with automatic synchronization of commits between the two.</div>
<div><br></div><div>Changes you make to files within &quot;Drools Workbench installation 1&quot; (using the cloned repository &quot;REPO-A-Cloned-1&quot;) will only appear in the clone. </div><div><br></div><div>You will need to handle a mechanism to push the commits made there to it&#39;s origin (i.e. REPO-A) and synchronization to REPO-A-Clone-2.</div>
<div><br></div><div>Google returns links to server-side scripts you can run to synchronize different GIT repositories; however you&#39;ll probably encounter merge conflicts if a single file was modified in both clones.</div>
<div><br></div><div>With kind regards,</div><div><br></div><div>Mike</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 June 2014 09:33, Zahid Ahmed <span dir="ltr">&lt;<a href="mailto:zahid.ahmed@emirates.com" target="_blank">zahid.ahmed@emirates.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div><div class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">@Michael<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Due to this error it’s not cloning it. Below is the architecture in which I am deploying the Workbench. Two Workbench instances, one central GIT repo and One
 central Maven Repo (Details as below)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">My architecture for Drools deployment is we will deploy two Drools Workbench instances. We will create one central GIT repository, REPO-A.git, which will be
 cloned by both the instances, REPO-A-Cloned-1, REPO-A-Cloned-2. If any file is committed in instance A, REPO-A-Cloned-1, should also appear in instance B, REPO-A-Cloned-2, and that asset should also appear in central repo, REPO-A.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Zahid<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="border:none;border-bottom:solid #cccccc 1.0pt;padding:0cm 0cm 2.85pt 0cm">
<p class="MsoNormal">
<span style="color:#1f497d"><u></u> <u></u></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">mailto:rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>Michael Anstis<br>
<b>Sent:</b> 08 June 2014 14:36<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div><p>You won&#39;t need a user id or password. <u></u><u></u></p><div><div class="h5">
<p>The remote origin error message is thrown by the underlying jgit library we use.
<u></u><u></u></p>
<p>Any repository that is cloned is considered a &quot;remote&quot; in git terms. The fact that it&#39;s on your local machine makes no difference in git terms.<u></u><u></u></p>
<p>Sent on the move<u></u><u></u></p>
<div>
<p class="MsoNormal">On 8 Jun 2014 11:07, &quot;Zahid Ahmed&quot; &lt;<a href="mailto:zahid.ahmed@emirates.com" target="_blank">zahid.ahmed@emirates.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am trying to clone a repo in Drools WorkBench and getting the following error,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>&quot;Can&#39;t clone repository. java.lang.RuntimeException:Invalid remote: origin&quot;</b><u></u><u></u></p>
<p class="MsoNormal"><b> </b><u></u><u></u></p>
<p class="MsoNormal">The repository which I am cloning,
<b>resides in my local machine</b>. D:/Servers/Drools-6-Deployment/repo/repoA.git<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Following are the inputs I am providing to WorkBench clone Wizard,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">&quot;Repository Name           = repoCloned&quot; &quot;Organizational Unit = inTech&quot;<u></u><u></u></p>
<p class="MsoNormal">&quot;GIT URL                              =
<a>file:///D:/Servers/Drools-6-Deployment/repo/repoA.git</a>&quot;<u></u><u></u></p>
<p class="MsoNormal">&quot;User Name                       = &quot; (Currently I am giving my github account cred. What to give in user name?)<u></u><u></u></p>
<p class="MsoNormal">&quot;Password                          = &quot; (Currently I am giving my github account cred. What to give as password?)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>Question 1</b><u></u><u></u></p>
<p class="MsoNormal">Why am I getting remote origin error when I am cloning from a local GIT repository ?
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>Question 2</b><u></u><u></u></p>
<p class="MsoNormal">Kindly let me know what to give as User Name and Password when I am cloning from an existing GIT repo in my local filesystem ?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="border:none;border-bottom:solid #cccccc 1.0pt;padding:0cm 0cm 2.85pt 0cm">
<p class="MsoNormal">
Regards,<u></u><u></u></p>
<p class="MsoNormal">
Zahid Ahmed<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">
 <u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><u></u><u></u></p>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br></div>