-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-reporelating to the gh repo commandrelating to the gh repo commandhelp wantedContributions welcomeContributions welcome
Description
gh --version
gh version 2.4.0+dfsg1 (2022-03-23 Ubuntu 2.4.0+dfsg1-2)
https://github.com/cli/cli/releases/latest
(that's about 2 years ago so this may already be fixed)
I attempted to rename a repo, cron -> .cron. The repo was called .cron at one point, and I intended to move the repo back to the initial name.
bug discovery:
~/.cron main ❯ gh repo rename .cron
? Rename thor314/.cron to .cron? Yes
✓ Renamed repository thor314/.cron
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xdf88ac]
goroutine 1 [running]:
github.com/cli/cli/v2/pkg/cmd/repo/rename.renameRun(0xc0005c5c00)
github.com/cli/cli/v2/pkg/cmd/repo/rename/rename.go:133 +0x5ac
github.com/cli/cli/v2/pkg/cmd/repo/rename.NewCmdRename.func1(0xc000306280?, {0xc0004c8750, 0x1, 0x1?})
github.com/cli/cli/v2/pkg/cmd/repo/rename/rename.go:67 +0x19c
github.com/spf13/cobra.(*Command).execute(0xc000306280, {0xc0004c8730, 0x1, 0x1})
github.com/spf13/cobra/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001fc500)
github.com/spf13/cobra/command.go:974 +0x3b4
main.mainRun()
github.com/cli/cli/v2/cmd/gh/main.go:203 +0xd0d
main.main()
github.com/cli/cli/v2/cmd/gh/main.go:46 +0x19
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-reporelating to the gh repo commandrelating to the gh repo commandhelp wantedContributions welcomeContributions welcome