When committing manifests, specify the manifest paths instead of using git
authorZac Medico <zmedico@gentoo.org>
Mon, 17 Nov 2008 09:36:46 +0000 (09:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 17 Nov 2008 09:36:46 +0000 (09:36 -0000)
commit -a, since we may not want to commit all dirty files in the whole repo.
Thanks to Robin Johnson <robbat2@g.o> for reporting.

svn path=/main/trunk/; revision=11980

bin/repoman

index 8c0440f13af3f07d02e3bb6376095fb3aac23d72..42008d5d18a6dcb3958b3f9fb7fd5f643e3c32a4 100755 (executable)
@@ -2061,9 +2061,8 @@ else:
                        commit_cmd.extend(vcs_global_opts)
                        commit_cmd.append("commit")
                        commit_cmd.extend(vcs_local_opts)
-                       if vcs == "git":
-                               commit_cmd.append("-a")
                        commit_cmd.extend(["-F", commitmessagefile])
+                       commit_cmd.extend(f.lstrip("./") for f in mymanifests)
 
                        try:
                                if options.pretend:
@@ -2141,9 +2140,8 @@ else:
                commit_cmd.extend(vcs_global_opts)
                commit_cmd.append("commit")
                commit_cmd.extend(vcs_local_opts)
-               if vcs == "git":
-                       commit_cmd.append("-a")
                commit_cmd.extend(["-F", commitmessagefile])
+               commit_cmd.extend(f.lstrip("./") for f in mymanifests)
 
                try:
                        if options.pretend: