My code is not portable, but the maintainers of original 'hub' <a href="https://github.com/defunkt/hub/commit/4df79700ac4e4d9ad441e1e56566be12a7919bcf">already applied</a> my fixes in a portable manner.<div><br></div>
<div>So now it just works if you follow <a href="https://github.com/defunkt/hub#on-windows">Windows installation instructions on their site</a>.<br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 3:00 PM, Max Rydahl Andersen <span dir="ltr"><<a href="mailto:max.andersen@redhat.com" target="_blank">max.andersen@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">nice work Yahor! does this make it only work on windows or is the code portable ? In either case opening a pullrequest against the original project so they could become aware there is a fork that works on windows would be great.<br>
<span class="HOEnZb"><font color="#888888"><br>
/max<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 28 Dec 2012, at 20:57, Yahor Radtsevich <<a href="mailto:yradtsevich@exadel.com">yradtsevich@exadel.com</a>> wrote:<br>
<br>
> I have already fixed all problems what I found in Windows version. So nearly everyting is working now.<br>
> Just created a fork on GitHub: <a href="https://github.com/yradtsevich/hub-windows" target="_blank">https://github.com/yradtsevich/hub-windows</a><br>
><br>
> Standalone version can be downloaded here: <a href="http://yradtsevich.github.com/hub-windows/hub" target="_blank">http://yradtsevich.github.com/hub-windows/hub</a><br>
><br>
> Now it does not require GITHUB_USER and GITHUB_PASSWORD to be set anymore.<br>
> At least the following commands may be executed on Windows:<br>
> hub fork<br>
> hub clone<br>
> hub pull-request<br>
> hub checkout PULL_REQUEST_URL<br>
> hub am PULL_REQUEST_URL<br>
><br>
><br>
> On Fri, Dec 21, 2012 at 7:43 PM, Max Rydahl Andersen <<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>> wrote:<br>
> do you have a fork on github with your hub changes ?<br>
><br>
> /max<br>
><br>
> On 21 Dec 2012, at 15:41, Yahor Radtsevich <<a href="mailto:yradtsevich@exadel.com">yradtsevich@exadel.com</a>> wrote:<br>
><br>
> > Unfortunately not everything works:<br>
> > • 'hub clone' and 'hub remote add' work without any additional setup.<br>
> > • 'hub fork' and 'hub pull-request' require replacing of 'exec(' to 'system(' calls in the script (there are 4 entries). And the following variables should be set:<br>
> > • export GIT_EDITOR='/D/Progs/Notepad++/notepad++.exe -multiInst '<br>
> > • export GITHUB_USER='yradtsevich'<br>
> > • export GITHUB_PASSWORD='password'<br>
> > • I did not manage yet how to get 'hub am' to work with pull request URLs<br>
> ><br>
> > On Thu, Dec 20, 2012 at 4:43 PM, Max Rydahl Andersen <<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>> wrote:<br>
> > does the commands actually work ? i.e. hub pull-request and hub fork ?<br>
> ><br>
> > /max<br>
> ><br>
> > On 14 Dec 2012, at 13:03, Yahor Radtsevich <<a href="mailto:yradtsevich@exadel.com">yradtsevich@exadel.com</a>> wrote:<br>
> ><br>
> > > Hi all,<br>
> > ><br>
> > > For those who have problems with installing hub on Windows. I did the following and it works:<br>
> > > • Install Git for Windows<br>
> > > • Install Ruby with RubyInstaller<br>
> > > • Add ruby\bin\ to your system PATH variable<br>
> > > • Download hub standalone (you must save it as "hub", not "standalone") into your git\bin\ folder<br>
> > > Now you should be able to use "hub" from Git Bash shell like this:<br>
> > > $ hub clone jbosstools/jbosstools-forge<br>
> > ><br>
> > > --<br>
> > > Best Regards,<br>
> > > Yahor Radtsevich<br>
> > ><br>
> > > _______________________________________________<br>
> > > jbosstools-dev mailing list<br>
> > > <a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Best Regards,<br>
> > Yahor Radtsevich<br>
><br>
><br>
><br>
><br>
> --<br>
> Best Regards,<br>
> Yahor Radtsevich<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Best Regards,</div><div>Yahor Radtsevich</div>
</div>