Fossil SCM

"new branch --private" tries to push

Fixed

13fd567b51fac82… · opened 14 years, 9 months ago

Type
Code_Defect
Priority
Severity
Minor
Resolution
Fixed
Subsystem
Created
July 10, 2011 6:42 p.m.

I cloned to official Fossil repository. Then ran a command to create a new private branch:

C:\scratch\fossil\tree>fossil branch new private_branch trunk --private
New branch: eb017cd99578e07ee0ff221fbc57ace0a240c3a8
Autosync:  http://www.fossil-scm.org/
                Bytes      Cards  Artifacts     Deltas
Sent:            2702         56          0          0
Server says: pull only - not authorized to push
Received:        2473         54          0          0
Total network traffic: 1601 bytes sent, 1523 bytes received

Notice the output line: "Server says: pull only - not authorized to push".

Why does creating a private branch cause a push?


dmitry added on 2011-08-23 01:52:02 UTC: Something like this might work?


--- src/branch.c
+++ src/branch.c
@@ -173,12 +173,14 @@


   /* Commit */
   db_end_transaction(0);

-  /* Do an autosync push, if requested */
-  autosync(AUTOSYNC_PUSH);
+  if( !isPrivate ) {
+    /* Do an autosync push, if requested */
+    autosync(AUTOSYNC_PUSH);
+  }
 }


Keyboard Shortcuts

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