Fossil SCM

Correct two broken links in the 'Fossil vs. Git' document.

danield 2023-03-23 14:48 trunk
Commit f8baa04bd2ffe092f56a3139aadb3d73f17271c76904431ada1cd7c9403d2a12
2 files changed +5 -1 +3 -2
+5 -1
--- src/xfer.c
+++ src/xfer.c
@@ -354,11 +354,14 @@
354354
}else{
355355
nullContent = 1;
356356
}
357357
358358
/* The isWriter flag must be true in order to land the new file */
359
- if( !isWriter ) goto end_accept_unversioned_file;
359
+ if( !isWriter ){
360
+ blob_appendf(&pXfer->err, "Write permissions for unversioned files missing");
361
+ goto end_accept_unversioned_file;
362
+ }
360363
361364
/* Make sure we have a valid g.rcvid marker */
362365
content_rcvid_init(0);
363366
364367
/* Check to see if current content really should be overwritten. Ideally,
@@ -1307,10 +1310,11 @@
13071310
if( blob_eq(&xfer.aToken[0], "uvfile") ){
13081311
xfer_accept_unversioned_file(&xfer, g.perm.WrUnver);
13091312
if( blob_size(&xfer.err) ){
13101313
cgi_reset_content();
13111314
@ error %T(blob_str(&xfer.err))
1315
+ fossil_print("%%%%%%%% xfer.err: '%s'\n", blob_str(&xfer.err));
13121316
nErr++;
13131317
break;
13141318
}
13151319
}else
13161320
13171321
--- src/xfer.c
+++ src/xfer.c
@@ -354,11 +354,14 @@
354 }else{
355 nullContent = 1;
356 }
357
358 /* The isWriter flag must be true in order to land the new file */
359 if( !isWriter ) goto end_accept_unversioned_file;
 
 
 
360
361 /* Make sure we have a valid g.rcvid marker */
362 content_rcvid_init(0);
363
364 /* Check to see if current content really should be overwritten. Ideally,
@@ -1307,10 +1310,11 @@
1307 if( blob_eq(&xfer.aToken[0], "uvfile") ){
1308 xfer_accept_unversioned_file(&xfer, g.perm.WrUnver);
1309 if( blob_size(&xfer.err) ){
1310 cgi_reset_content();
1311 @ error %T(blob_str(&xfer.err))
 
1312 nErr++;
1313 break;
1314 }
1315 }else
1316
1317
--- src/xfer.c
+++ src/xfer.c
@@ -354,11 +354,14 @@
354 }else{
355 nullContent = 1;
356 }
357
358 /* The isWriter flag must be true in order to land the new file */
359 if( !isWriter ){
360 blob_appendf(&pXfer->err, "Write permissions for unversioned files missing");
361 goto end_accept_unversioned_file;
362 }
363
364 /* Make sure we have a valid g.rcvid marker */
365 content_rcvid_init(0);
366
367 /* Check to see if current content really should be overwritten. Ideally,
@@ -1307,10 +1310,11 @@
1310 if( blob_eq(&xfer.aToken[0], "uvfile") ){
1311 xfer_accept_unversioned_file(&xfer, g.perm.WrUnver);
1312 if( blob_size(&xfer.err) ){
1313 cgi_reset_content();
1314 @ error %T(blob_str(&xfer.err))
1315 fossil_print("%%%%%%%% xfer.err: '%s'\n", blob_str(&xfer.err));
1316 nErr++;
1317 break;
1318 }
1319 }else
1320
1321
--- www/fossil-v-git.wiki
+++ www/fossil-v-git.wiki
@@ -358,21 +358,22 @@
358358
359359
About half of Git's code is POSIX C, and about a third is POSIX shell
360360
code. This is largely why the so-called "Git for Windows" distributions
361361
(both [https://git-scm.com/download/win|first-party] and
362362
[https://gitforwindows.org/|third-party]) are actually an
363
-[http://mingw.org/wiki/msys|MSYS POSIX portability environment] bundled
363
+[https://osdn.net/projects/mingw/|MSYS POSIX portability environment] bundled
364364
with all of the Git stuff, because it would be too painful to port Git
365365
natively to Windows. Git is a foreign citizen on Windows, speaking to it
366366
only through a translator.⁶
367367
368368
While Fossil does lean toward POSIX norms when given a choice — LF-only
369369
line endings are treated as first-class citizens over CR+LF, for example
370370
— the Windows build of Fossil is truly native.
371371
372372
The third-party extensions to Git tend to follow this same pattern.
373
-[http://mingw.org/wiki/msys|GitLab isn't portable to Windows at all],
373
+[https://docs.gitlab.com/ee/install/install_methods.html#microsoft-windows |
374
+GitLab isn't portable to Windows at all],
374375
for example. For that matter, GitLab isn't even officially supported on
375376
macOS, the BSDs, or uncommon Linuxes! We have many users who regularly
376377
build and run Fossil on all of these systems.
377378
378379
379380
--- www/fossil-v-git.wiki
+++ www/fossil-v-git.wiki
@@ -358,21 +358,22 @@
358
359 About half of Git's code is POSIX C, and about a third is POSIX shell
360 code. This is largely why the so-called "Git for Windows" distributions
361 (both [https://git-scm.com/download/win|first-party] and
362 [https://gitforwindows.org/|third-party]) are actually an
363 [http://mingw.org/wiki/msys|MSYS POSIX portability environment] bundled
364 with all of the Git stuff, because it would be too painful to port Git
365 natively to Windows. Git is a foreign citizen on Windows, speaking to it
366 only through a translator.⁶
367
368 While Fossil does lean toward POSIX norms when given a choice — LF-only
369 line endings are treated as first-class citizens over CR+LF, for example
370 — the Windows build of Fossil is truly native.
371
372 The third-party extensions to Git tend to follow this same pattern.
373 [http://mingw.org/wiki/msys|GitLab isn't portable to Windows at all],
 
374 for example. For that matter, GitLab isn't even officially supported on
375 macOS, the BSDs, or uncommon Linuxes! We have many users who regularly
376 build and run Fossil on all of these systems.
377
378
379
--- www/fossil-v-git.wiki
+++ www/fossil-v-git.wiki
@@ -358,21 +358,22 @@
358
359 About half of Git's code is POSIX C, and about a third is POSIX shell
360 code. This is largely why the so-called "Git for Windows" distributions
361 (both [https://git-scm.com/download/win|first-party] and
362 [https://gitforwindows.org/|third-party]) are actually an
363 [https://osdn.net/projects/mingw/|MSYS POSIX portability environment] bundled
364 with all of the Git stuff, because it would be too painful to port Git
365 natively to Windows. Git is a foreign citizen on Windows, speaking to it
366 only through a translator.⁶
367
368 While Fossil does lean toward POSIX norms when given a choice — LF-only
369 line endings are treated as first-class citizens over CR+LF, for example
370 — the Windows build of Fossil is truly native.
371
372 The third-party extensions to Git tend to follow this same pattern.
373 [https://docs.gitlab.com/ee/install/install_methods.html#microsoft-windows |
374 GitLab isn't portable to Windows at all],
375 for example. For that matter, GitLab isn't even officially supported on
376 macOS, the BSDs, or uncommon Linuxes! We have many users who regularly
377 build and run Fossil on all of these systems.
378
379
380

Keyboard Shortcuts

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