> On Jan. 14, 2016, 5:26 p.m., haosdent huang wrote:
> > support/post-reviews.py, line 98
> > <https://reviews.apache.org/r/42309/diff/1/?file=1196966#file1196966line98>
> >
> >     Pull to else seems would be better?
> 
> Kevin Klues wrote:
>     I'm sorry, I don't understand your comment.  I need to first try the call 
> with "--git-common-dir" and if it fails (by simply returning 
> "--git-common-dir" back to me, then I need to fallback to calling with 
> "--git-dir". I wanted to just check the exit code if it failed, but it 
> actually reurns 0 in all cases.

Sorry, I got your idea. If git don't support `--git-common-dir`, it would 
return `--git-common-dir` in result.


- haosdent


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42309/#review114502
-----------------------------------------------------------


On Jan. 14, 2016, 4:50 p.m., Kevin Klues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42309/
> -----------------------------------------------------------
> 
> (Updated Jan. 14, 2016, 4:50 p.m.)
> 
> 
> Review request for mesos, Benjamin Bannier and Till Toenshoff.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> The newly introduced way of finding the .git directory via
> --git-common-dir is only supported on newer versions of git. Fallback to
> the older --git-dir method if --git-common-dir is not supported.
> 
> 
> Diffs
> -----
> 
>   bootstrap 519090d696ae09dac70318e91ade583b38f44048 
>   support/post-reviews.py ea361018ee77f55953af55038109148ed8057e44 
> 
> Diff: https://reviews.apache.org/r/42309/diff/
> 
> 
> Testing
> -------
> 
> Tested on mac el capitan and ubuntu 14.04 with both bash and dash and git 
> 2.6.3 and git 2.2.0 repsectively.
> 
> 
> Thanks,
> 
> Kevin Klues
> 
>

Reply via email to