File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ func renameRun(opts *RenameOptions) error {
8888
8989 var hostName string
9090 var input renameRepo
91- var newRepoName string
9291
9392 if ! opts .flagRepo {
93+ var newRepoName string
9494 currRepo , err := opts .BaseRepo ()
9595 if err != nil {
9696 return err
@@ -119,7 +119,7 @@ func renameRun(opts *RenameOptions) error {
119119
120120 } else {
121121 oldRepoURL := opts .oldRepoSelector
122- newRepoName = opts .newRepoSelector
122+ newRepoName : = opts .newRepoSelector
123123
124124 currentUser , err := api .CurrentLoginName (apiClient , ghinstance .Default ())
125125 if err != nil {
@@ -134,6 +134,7 @@ func renameRun(opts *RenameOptions) error {
134134 if err != nil {
135135 return fmt .Errorf ("argument error: %w" , err )
136136 }
137+
137138 hostName = currRepo .RepoHost ()
138139
139140 input = renameRepo {
@@ -149,7 +150,7 @@ func renameRun(opts *RenameOptions) error {
149150 }
150151
151152 if opts .IO .IsStdoutTTY () {
152- fmt .Fprintf (opts .IO .Out , "%s Renamed repository %s\n " , cs .SuccessIcon (), input .Owner + "/" + newRepoName )
153+ fmt .Fprintf (opts .IO .Out , "%s Renamed repository %s\n " , cs .SuccessIcon (), input .Owner + "/" + input . Name )
153154 }
154155
155156 return nil
You can’t perform that action at this time.
0 commit comments