Something like this might work?

<verbatim>
--- 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);
+  }
 }
</verbatim>