| Ticket UUID: | 13fd567b51fac826aa1ffcdfa70e27715a7a9172 | ||
| Title: | "new branch --private" tries to push | ||
| Status: | Fixed | Type: | Code_Defect |
| Severity: | Minor | Priority: | |
| Subsystem: | Resolution: | Fixed | |
| Last Modified: | 2011-08-23 15:14:41 | ||
| Version Found In: | [0448438c56] 2011-05-28 18:51:22 UTC | ||
| Description & Comments: | |||
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:
--- 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);
+ }
}
| |||