-
Notifications
You must be signed in to change notification settings - Fork 750
Open
Labels
🐛bugSomething isn't workingSomething isn't working
Description
Description
jj git clone
is failing for me
# jj git clone https://github.com/octocat/Hello-World
Error: Git remote named 'origin' already exists
It also fails when I try to clone other repositories
# jj git clone https://github.com/christianscott/christianfscott.com.git
Error: Git remote named 'origin' already exists
I made sure to nuke all of my .gitconfig
files & the environment and it still fails:
# git config list | wc -l
0
# env -i (which jj) git clone https://github.com/octocat/Hello-World
Error: Git remote named 'origin' already exists
It succeeds if I specify a custom remote:
# jj git clone https://github.com/octocat/Hello-World --remote github
Fetching into new repo in "/Users/christian.s/Code/github.com/octocat/Hello-World"
remote: Enumerating objects: 13, done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13 (from 1)
bookmark: master@github [new] tracked
bookmark: octocat-patch-1@github [new] untracked
bookmark: test@github [new] untracked
Setting the revset alias `trunk()` to `master@github`
Working copy (@) now at: rxwxlwoy 3b7c6b23 (empty) (no description set)
Parent commit (@-) : orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spaceghost/patch-1
Added 1 files, modified 0 files, removed 0 files
Hint: Running `git clean -xdf` will remove `.jj/`!
However, jj git remote list
fails:
# cd Hello-World/
# jj git remote list
github https://github.com/octocat/Hello-World
Error: Failed to load configured remote origin
Caused by: Neither 'url` nor 'pushUrl' fields were set in the remote's configuration.
There is no origin
remote in .git/config
:
# cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
symlinks = true
ignorecase = false
precomposeunicode = true
[remote "github"]
url = https://github.com/octocat/Hello-World
fetch = +refs/heads/*:refs/remotes/github/*
Specifications
- Platform: macos 15.7.1
- Version: jj 0.34.0-3c0bd635d1bf217448af05d3720aa195cf9e6080
Metadata
Metadata
Assignees
Labels
🐛bugSomething isn't workingSomething isn't working