Skip to content

Commit 3e58080

Browse files
committed
Allow rig add for local repos without remotes
1 parent d6cd9da commit 3e58080

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/cmd/rig.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ func runRigAdd(cmd *cobra.Command, args []string) error {
402402
var err error
403403
gitURL, err = findGitRemoteURL(root)
404404
if err != nil {
405-
return fmt.Errorf("no git remote found: %w", err)
405+
// Allow local repos without remotes; use local path as the source URL.
406+
gitURL = root
406407
}
407408
}
408409
} else if rigName == "" {

0 commit comments

Comments
 (0)