totten / git-scan

CLI tool for scanning/updating git repos
33 stars 7 forks source link

ignore .repo #8

Closed Azulinho closed 8 years ago

Azulinho commented 8 years ago

I use android's repo tool to download a large number of repositories and git-scan to interact with them. However git-scan thinks it should manage the .repo directory as well.

\>git-scan st
[[ Finding repositories ]]
[[ Checking statuses ]]
 6/6 [============================] 100%
[[ Results ]]

+--------+--------------------------------+--------------+---------------+
| Status | Path                           | Local Branch | Remote Branch |
+--------+--------------------------------+--------------+---------------+
|        | monolith                       | master       | origin/master |
|        | monolith/ci_on_mesos_on_centos | master       | github/master |
|        | monolith/ansible-os-updates    | master       | github/master |
|        | monolith/.repo/manifests       | master       | origin/master |
|        | monolith/.repo/repo            | master       | origin/master |
+--------+--------------------------------+--------------+---------------+
totten commented 8 years ago

Thanks for reporting. Agree it makes sense to skip .repo folders, and it's a pretty simple patch (^^^).

The latest PHAR should skip .repo (and other non-git VCS folders).