Having a leading ./ prefix on file paths can trigger a bug in
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Nov 2008 06:12:54 +0000 (06:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Nov 2008 06:12:54 +0000 (06:12 -0000)
the cvs server when committing files to multiple directories,
so strip the prefix. Thanks to Robin H. Johnson <robbat2@g.o>
for reporting.

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

bin/repoman

index 22568ab38570e5b7a8af5eda43f7f9d1fe662390..d762d4a6f3cfb1137b57e3feac9f3eb18b1cb25c 100755 (executable)
@@ -1878,6 +1878,11 @@ else:
                print green("------------------------------------------------------------------------------")
                print
 
+               # Having a leading ./ prefix on file paths can trigger a bug in
+               # the cvs server when committing files to multiple directories,
+               # so strip the prefix.
+               myfiles = [f.lstrip("./") for f in myfiles]
+
                retval = None
                if options.pretend:
                        if vcs == "cvs":