Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r26 - in trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r26 - in trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2005-10-09 23:14:16 PDT
Message Author: pmarek
Date: Sun Oct 9 23:14:16 2005
New Revision: 26

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/init.c
Log:
remove / at end of urls, to avoid the 'is_canonical' assertion in svn



Modified: trunk/fsvs/src/init.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/ini​t.c?view=diff&re​v=26&p1=trunk/fs​vs/src/init.c&r1​=25&p2=trunk/fsv​s/src/init.c&r2=​26
====================​====================​====================​==================
--- trunk/fsvs/src/init.c (original)
+++ trunk/fsvs/src/init.c Sun Oct 9 23:14:16 2005
@@ -34,7 +34,19 @@
 
     while (*argv)
     {
- l=strlen(argv[0])+1;
+ l=strlen(argv[0]);
+
+ /* We remove any / at the end of the URL (which may have resulted from
+ * bash-completion), otherwise we'll get an error:
+ * subversion/libsvn_su​br/path.c:114:
+ * svn_path_join: Assertion `is_canonical (base, blen)' failed.
+ * That's not necessary. */
+ while (l>3 && argv[0][l-1] == '/')
+ argv[0][--l] = 0;
+
+ /* include the \0 */
+ l++;
+
         status=write(fh, argv[0], l);
         if (status != l)
         {

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r26 - in trunk: . fsvs/src pmarek P.Marek 2005-10-09 23:14:16 PDT
Messages per page: