Fossil SCM

Use double-quotes instead of single-quotes for the argument to "git export" in the "fossil git export" command, for windows compatibility.

drh 2019-10-01 18:11 trunk
Commit be7c1bde92c8caae92fd5e5a4c928a06c0e59554fea14cce34d116d777efd0ae
1 file changed +1 -1
+1 -1
--- src/export.c
+++ src/export.c
@@ -1286,11 +1286,11 @@
12861286
if( rc ) fossil_fatal("cannot create directory \"%s\"", zMirror);
12871287
12881288
/* Make sure GIT has been initialized */
12891289
z = mprintf("%s/.git", zMirror);
12901290
if( !file_isdir(z, ExtFILE) ){
1291
- zCmd = mprintf("git init '%s'",zMirror);
1291
+ zCmd = mprintf("git init \"%s\"",zMirror);
12921292
gitmirror_message(VERB_NORMAL, "%s\n", zCmd);
12931293
rc = fossil_system(zCmd);
12941294
if( rc ){
12951295
fossil_fatal("cannot initialize the git repository using: \"%s\"", zCmd);
12961296
}
12971297
--- src/export.c
+++ src/export.c
@@ -1286,11 +1286,11 @@
1286 if( rc ) fossil_fatal("cannot create directory \"%s\"", zMirror);
1287
1288 /* Make sure GIT has been initialized */
1289 z = mprintf("%s/.git", zMirror);
1290 if( !file_isdir(z, ExtFILE) ){
1291 zCmd = mprintf("git init '%s'",zMirror);
1292 gitmirror_message(VERB_NORMAL, "%s\n", zCmd);
1293 rc = fossil_system(zCmd);
1294 if( rc ){
1295 fossil_fatal("cannot initialize the git repository using: \"%s\"", zCmd);
1296 }
1297
--- src/export.c
+++ src/export.c
@@ -1286,11 +1286,11 @@
1286 if( rc ) fossil_fatal("cannot create directory \"%s\"", zMirror);
1287
1288 /* Make sure GIT has been initialized */
1289 z = mprintf("%s/.git", zMirror);
1290 if( !file_isdir(z, ExtFILE) ){
1291 zCmd = mprintf("git init \"%s\"",zMirror);
1292 gitmirror_message(VERB_NORMAL, "%s\n", zCmd);
1293 rc = fossil_system(zCmd);
1294 if( rc ){
1295 fossil_fatal("cannot initialize the git repository using: \"%s\"", zCmd);
1296 }
1297

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button