]> oss.titaniummirror.com Git - repo_shell.git/commit
Fix improper handling of repo_groups sections 0.7
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 4 Dec 2012 20:43:58 +0000 (13:43 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 4 Dec 2012 20:43:58 +0000 (13:43 -0700)
commiteefb116b6a88415e4a9e9a1d94f12781853df376
treea3cc3ed62fb44191c1f3fe4387e13cea270c0ba7
parentf03727cda0f87c1f3f6ffcb88c0b9c18d4225ddf
Fix improper handling of repo_groups sections

When parsing repo_groups ini entries, repo_shell was calling
strip_repo() on the entry value, then calling str_has_word() to see if
the desired repo was in the list of words represented by the ini value.
Of course this is wrong, each token in the value string must have
strip_repo() called upon it instead.

The solution:

* Move strip_repo() to stringutils.c
* Add str_has_repo(), when can call strip_repo() on each token in its
  string.
git_acl.c
stringutils.c
stringutils.h