Fossil SCM

Bug fix: Pull public artifacts when --private is not used.

drh 2011-02-27 17:48 UTC private-sync
Commit e3e368c3298ee6908c53fa13ae291646eab22276
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -1498,11 +1498,11 @@
14981498
int rid;
14991499
int isPriv = xfer.nToken>=3 && blob_eq(&xfer.aToken[2],"1");
15001500
rid = rid_from_uuid(&xfer.aToken[1], 0, 0);
15011501
if( rid>0 ){
15021502
if( !isPriv ) content_make_public(rid);
1503
- }else if( !g.okPrivate ){
1503
+ }else if( isPriv && !g.okPrivate ){
15041504
/* ignore private files */
15051505
}else if( pullFlag || cloneFlag ){
15061506
rid = content_new(blob_str(&xfer.aToken[1]), isPriv);
15071507
if( rid ) newPhantom = 1;
15081508
}
15091509
--- src/xfer.c
+++ src/xfer.c
@@ -1498,11 +1498,11 @@
1498 int rid;
1499 int isPriv = xfer.nToken>=3 && blob_eq(&xfer.aToken[2],"1");
1500 rid = rid_from_uuid(&xfer.aToken[1], 0, 0);
1501 if( rid>0 ){
1502 if( !isPriv ) content_make_public(rid);
1503 }else if( !g.okPrivate ){
1504 /* ignore private files */
1505 }else if( pullFlag || cloneFlag ){
1506 rid = content_new(blob_str(&xfer.aToken[1]), isPriv);
1507 if( rid ) newPhantom = 1;
1508 }
1509
--- src/xfer.c
+++ src/xfer.c
@@ -1498,11 +1498,11 @@
1498 int rid;
1499 int isPriv = xfer.nToken>=3 && blob_eq(&xfer.aToken[2],"1");
1500 rid = rid_from_uuid(&xfer.aToken[1], 0, 0);
1501 if( rid>0 ){
1502 if( !isPriv ) content_make_public(rid);
1503 }else if( isPriv && !g.okPrivate ){
1504 /* ignore private files */
1505 }else if( pullFlag || cloneFlag ){
1506 rid = content_new(blob_str(&xfer.aToken[1]), isPriv);
1507 if( rid ) newPhantom = 1;
1508 }
1509

Keyboard Shortcuts

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