Having the version number in the directory name allows easy checking of the
installed version. Would need to refactor that to checking git --version
output.

That's possible, though I don't see a significant advantage. I'm also not a
Linux expert though.

On Saturday, April 5, 2014, Abhishek Munie <notifications@github.com> wrote:

> In bin/compile:
>
> >
> >  if [[ ! $GIT_VERSION ]]; then
> >    GIT_VERSION=1.8.1.4
> >  fi
> >
> > -cd $BUILD_DIR
> > -echo -n "-----> Downloading Git $GIT_VERSION... "
> > -curl --silent --location https://git-core.googlecode.com/files/git-$GIT_VERSION.tar.gz | tar xz
> > -cd git-$GIT_VERSION
> > -echo "       done."
> > +BIN_DIR=$BUILD_DIR/vendor/git-$GIT_VERSION
>
> @cbas <https://github.com/cbas>
> Sorry if I'm wrong, I don't have much experience with linux.
> But wouldn't it be better to put final git binaries in a fixed directory,
> one which can be exported into PATH using release script. e.g.:
> $BUILD_DIR/vendor/git or $BUILD_DIR/vendor/bin
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/abhishekmunie/heroku-buildpack-git/pull/3/files#r11321656>
> .
>