<div dir="ltr"><div><div>Hi Predrag,<br><br>The problem is resolved. I was able to push local branches to remote repositories. Thank you!<br><br></div>Thanks,<br></div>Jarod<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 10:58 PM, Predrag Punosevac <span dir="ltr"><<a href="mailto:predragp@andrew.cmu.edu" target="_blank">predragp@andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Donghan Wang <<a href="mailto:donghanw@cs.cmu.edu" target="_blank">donghanw@cs.cmu.edu</a>> wrote:<br>
<br>
> Hi Predrag,<br>
><br>
> It seems bash is not available on the git server.<br>
><br>
> The issue occurs when you push a local branch to a remote repository. To<br>
> reproduce the issue, run the following commands<br>
><br>
> On your workstation, check out any repository<br>
><br>
> > git clone ssh://<a href="http://git@git.int.autonlab.org:2222/MCBA/ui.git" rel="noreferrer" target="_blank">git@git.int.autonlab.org<wbr>:2222/MCBA/ui.git</a><br>
><br>
> # create a new local branch "new-branch"<br>
> > git checkout -b new-branch<br>
><br>
> # push it to the remote repo<br>
> > git push origin new-branch<br>
><br>
> You will see error messages like this<br>
><br>
> Total 0 (delta 0), reused 0 (delta 0)<br>
> remote: env: bash: No such file or directory<br>
> To ssh://<a href="http://git@git.int.autonlab.org:2222/MCBA/ui.git" rel="noreferrer" target="_blank">git@git.int.autonlab.org<wbr>:2222/MCBA/ui.git</a><br>
> ! [remote rejected] new-branch -> new-branch (pre-receive hook declined)<br>
><br>
<br>
</span>I just changed the default shell of user git to bash and restarted the<br>
Gogs server. Please try again and see if you can reproduce the problem.<br>
<br>
Cheers,<br>
Predrag<br>
<div class="m_5311509092307517314HOEnZb"><div class="m_5311509092307517314h5"><br>
<br>
> Thanks,<br>
> Jarod<br>
><br>
> On Wed, Nov 1, 2017 at 3:38 PM, Predrag Punosevac <<a href="mailto:predragp@andrew.cmu.edu" target="_blank">predragp@andrew.cmu.edu</a>><br>
> wrote:<br>
><br>
> > Dear Autonians,<br>
> ><br>
> > Please remove <a href="http://git.int.autonlab.org" rel="noreferrer" target="_blank">git.int.autonlab.org</a> from .ssh/known_hosts and clear the<br>
> > cash of your browsers to start using upgraded version Gogs/git. Please<br>
> > report any odd behavior right away. The old version is still up and<br>
> > running but I am the only one who can see it. I will keep it a day or<br>
> > two for safety reasons.<br>
> ><br>
> > Best,<br>
> > Predrag<br>
> ><br>
</div></div></blockquote></div><br></div></div>