Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Make sure to configure checkouts properly
Alexis Sellier committed 1 year ago
commit 54551b117435a006acddefbf3850b02d6ee84ffa
parent 1388601cb627d4fcf8a401f83bd4b2b4a1436481
3 files changed +6 -0
modified radicle-cli/examples/rad-checkout-repo-config-linux.md
@@ -11,6 +11,8 @@ $ cat .git/config
	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true
+
[push]
+
	default = upstream
[remote "rad"]
	url = rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji
	fetch = +refs/heads/*:refs/remotes/rad/*
modified radicle-cli/examples/rad-checkout-repo-config-macos.md
@@ -13,6 +13,8 @@ $ cat .git/config
	ignorecase = true
	precomposeunicode = true
	logallrefupdates = true
+
[push]
+
	default = upstream
[remote "rad"]
	url = rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji
	fetch = +refs/heads/*:refs/remotes/rad/*
modified radicle/src/rad.rs
@@ -222,6 +222,8 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
    let repo = git2::Repository::init_opts(path.as_ref(), &opts)?;
    let url = git::Url::from(proj);

+
    // Configure repository for radicle.
+
    git::configure_repository(&repo)?;
    // Configure and fetch all refs from remote.
    git::configure_remote(
        &repo,