Merge "Only add 'groups' file to the repo if it exists"
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index 0e73585..b248e7d 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -247,10 +247,10 @@
with open(group_file, 'w') as fp:
for group, uuid in uuids.items():
fp.write("%s\t%s\n" % (uuid, group))
- status = git_command(repo_path, "add groups")
- if status != 0:
- log.error("Failed to add groups file for project: %s" % project)
- raise CreateGroupException()
+ status = git_command(repo_path, "add groups")
+ if status != 0:
+ log.error("Failed to add groups file for project: %s" % project)
+ raise CreateGroupException()
def make_ssh_wrapper(gerrit_user, gerrit_key):