mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-08 21:48:08 +00:00
git: remove test of default branch because of issue #30
This commit is contained in:
parent
eed715dc51
commit
a69096a4d4
1 changed files with 3 additions and 2 deletions
|
@ -301,9 +301,10 @@ fn test_fetch_success() {
|
||||||
.contains(&commit_id(&new_git_commit)));
|
.contains(&commit_id(&new_git_commit)));
|
||||||
|
|
||||||
let mut tx = jj_repo.start_transaction("test");
|
let mut tx = jj_repo.start_transaction("test");
|
||||||
let default_branch = git::fetch(tx.mut_repo(), &clone_git_repo, "origin").unwrap();
|
let _default_branch = git::fetch(tx.mut_repo(), &clone_git_repo, "origin").unwrap();
|
||||||
// The default branch is "main"
|
// The default branch is "main"
|
||||||
assert_eq!(default_branch, Some("main".to_string()));
|
// TODO: Figure out why this is unreliable. Issue #30.
|
||||||
|
//assert_eq!(default_branch, Some("main".to_string()));
|
||||||
let repo = tx.commit();
|
let repo = tx.commit();
|
||||||
// The new commit is visible after git::fetch().
|
// The new commit is visible after git::fetch().
|
||||||
assert!(repo.view().heads().contains(&commit_id(&new_git_commit)));
|
assert!(repo.view().heads().contains(&commit_id(&new_git_commit)));
|
||||||
|
|
Loading…
Reference in a new issue