mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-27 07:46:13 +00:00
feat: resolve diverged worktrees, status --plan, snapshot size limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b86342b1d0
commit
398b959ffe
13 files changed
+443
-17
No files matched your search
@@ -35,6 +35,13 @@ fn new_repo_pushes_and_a_fresh_machine_clones_it_into_the_bare_layout() {
|
||||
let b = base.join("B/g/proj");
|
||||
let made = clone_bare_layout(url, &b, &[]).unwrap();
|
||||
assert_eq!(made.len(), 1);
|
||||
assert_eq!(
|
||||
Git::new(b.join("main"))
|
||||
.run(&["rev-parse", "--abbrev-ref", "@{upstream}"])
|
||||
.unwrap(),
|
||||
"origin/main",
|
||||
"cloned worktrees must track their remote branch"
|
||||
);
|
||||
assert!(b.join("main/.git").exists() && b.join(".bare").is_dir());
|
||||
assert_eq!(
|
||||
Git::new(b.join("main"))
|
||||
|
||||
Reference in new issue
Block a user