feat: add no-push config to disable automatic git push
Wire up the existing --no-push flag to a config option so it can be set as the default, and update bd prime output accordingly. - Add no-push default to config.go, matching existing pattern - Check config in sync.go when --no-push flag not explicitly set - Update bd prime output to omit git push step when enabled
This commit is contained in:
@@ -57,6 +57,11 @@ Use --merge to merge the sync branch back to main branch.`,
|
||||
squash, _ := cmd.Flags().GetBool("squash")
|
||||
checkIntegrity, _ := cmd.Flags().GetBool("check")
|
||||
|
||||
// If --no-push not explicitly set, check no-push config
|
||||
if !cmd.Flags().Changed("no-push") {
|
||||
noPush = config.GetBool("no-push")
|
||||
}
|
||||
|
||||
// bd-sync-corruption fix: Force direct mode for sync operations.
|
||||
// This prevents stale daemon SQLite connections from corrupting exports.
|
||||
// If the daemon was running but its database file was deleted and recreated
|
||||
|
||||
Reference in New Issue
Block a user