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

svn path=/main/branches/2.1.6/; revision=11897

bin/repoman

index a431d293b83500fc106bc4f44bab6dcda0f504f4..48a41385c3a7e4411d0bebec60940edea3aa1e92 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":