appc / goaci

tool to build go projects into ACIs (archived, see https://github.com/rkt/rkt/issues/4024)
Apache License 2.0
103 stars 15 forks source link

recursively search parent directory for vcs directory #18

Open songgao opened 9 years ago

songgao commented 9 years ago

go get would clone the repo automatically but the VCS directory (e.g. .git) would always be in the root directory. If a project's binary is in a sub-directory, goaci could not find the .git thus fails to recognize the VCS repo. This commit adds support for projects where binaries stay in subdirectories of the project repo by recursively search parent directories for the VCS directory.

jonboulle commented 9 years ago

/cc @krnowak