Skip to content

Commit

Permalink
ghar: ignore README files
Browse files Browse the repository at this point in the history
Allow repos to be documented with README and do not install them.

Signed-off-by: Brandon Philips <brandon@ifup.org>
  • Loading branch information
philips committed Nov 1, 2010
1 parent 40afe7e commit e4685a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ghar
Expand Up @@ -123,11 +123,11 @@ class Repo:
# mail-config/.msmtprc
# would be linked to $HOME/.mutt $HOME/.msmtprc respectively
def _is_collection(self):
# dotfiles in repo means a collection filter for .git naturally
# dotfiles in repo means a collection
l = self.ls[:]
found_one = False
for f in l:
if re.match("^\.git.*$", f):
if re.match("^\.git.*$", f) or re.match("^\README.*$", f):
self.ls.remove(f)
elif re.match("^\..+$", f):
found_one = True
Expand Down

0 comments on commit e4685a8

Please sign in to comment.