fix(hooks): skip JSONL checks in pre-push for dolt-native mode
The pre-push hook was checking for uncommitted JSONL changes even in dolt-native sync mode where JSONL files don't exist. This blocked pushes unnecessarily. Now skips the check entirely when sync.mode is dolt-native. Fixes: hq-6ymh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Executed-By: mayor Role: mayor
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/steveyegge/beads/internal/beads"
|
"github.com/steveyegge/beads/internal/beads"
|
||||||
|
"github.com/steveyegge/beads/internal/config"
|
||||||
"github.com/steveyegge/beads/internal/git"
|
"github.com/steveyegge/beads/internal/git"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -669,6 +670,11 @@ func runPrePushHook(args []string) int {
|
|||||||
return exitCode
|
return exitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip JSONL checks for dolt-native mode (no JSONL files to check)
|
||||||
|
if config.GetSyncMode() == config.SyncModeDoltNative {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
// Check if we're in a bd workspace
|
// Check if we're in a bd workspace
|
||||||
if _, err := os.Stat(".beads"); os.IsNotExist(err) {
|
if _, err := os.Stat(".beads"); os.IsNotExist(err) {
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user