Rubén Justo
77e7267e47
branch: error copying or renaming a detached HEAD
...
In c847f53712 (Detached HEAD (experimental), 2007-01-01) an error
condition was introduced in rename_branch() to prevent renaming, later
also copying, a detached HEAD.
The condition used was checking for NULL in oldname, the source branch
to rename/copy. That condition cannot be satisfied because if no source
branch is specified, HEAD is going to be used in the call.
The error issued instead is:
fatal: Invalid branch name: 'HEAD'
Let's remove the condition in copy_or_rename_branch() (the current
function name) and check for HEAD before calling it, dying with the
original intended error if we're in a detached HEAD.
Signed-off-by: Rubén Justo <rjusto@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2022-10-26 10:52:24 -07:00
..
2022-06-07 14:10:56 -07:00
2022-09-01 10:49:48 -07:00
2022-04-06 09:42:14 -07:00
2022-08-19 11:13:14 -07:00
2022-10-17 14:56:32 -07:00
2022-08-19 11:13:14 -07:00
2022-10-26 10:52:24 -07:00
2022-08-12 13:20:02 -07:00
2022-08-19 11:13:15 -07:00
2022-08-05 15:52:14 -07:00
2022-07-01 11:43:42 -07:00
2022-09-01 10:49:48 -07:00
2022-02-17 16:25:05 -08:00
2022-10-17 15:46:09 -07:00
2022-09-14 12:56:39 -07:00
2022-10-06 09:58:06 -07:00
2022-09-01 10:49:48 -07:00
2022-02-04 13:58:28 -08:00
2022-09-01 10:49:48 -07:00
2022-09-21 11:53:35 -07:00
2022-07-12 07:17:28 -07:00
2022-04-13 23:56:10 -07:00
2022-04-26 09:26:35 -07:00
2022-10-01 15:58:38 -07:00
2022-09-14 12:56:39 -07:00
2022-08-19 11:13:14 -07:00
2022-09-14 12:56:39 -07:00
2022-09-01 10:49:48 -07:00
2022-09-12 08:38:59 -07:00
2022-09-19 14:35:24 -07:00
2022-10-10 10:08:39 -07:00
2022-10-17 14:56:31 -07:00
2022-10-11 10:36:12 -07:00
2022-09-23 09:41:27 -07:00
2022-03-16 17:53:08 -07:00
2022-09-02 10:02:56 -07:00
2022-08-19 11:13:15 -07:00
2022-06-17 10:38:26 -07:00
2022-09-14 12:56:39 -07:00
2022-09-12 09:25:40 -07:00
2022-05-20 15:26:59 -07:00
2022-09-01 10:49:48 -07:00
2022-05-20 15:26:59 -07:00
2022-03-04 13:24:17 -08:00
2022-07-01 11:43:43 -07:00
2022-03-07 11:57:52 -08:00
2022-06-22 16:10:06 -07:00
2022-09-13 12:21:11 -07:00
2022-03-16 17:53:08 -07:00
2022-06-21 10:12:15 -07:00
2022-10-06 09:56:51 -07:00
2022-09-19 14:35:23 -07:00
2022-09-01 10:49:48 -07:00
2022-09-07 12:06:12 -07:00
2022-09-14 12:56:39 -07:00
2022-05-02 09:50:37 -07:00
2022-02-02 11:24:23 -08:00
2022-02-04 13:58:28 -08:00
2022-04-13 23:56:08 -07:00
2022-07-01 11:43:43 -07:00
2022-09-28 19:03:10 -07:00
2022-08-26 09:49:26 -07:00
2022-03-01 12:36:01 -08:00
2022-07-19 12:49:04 -07:00
2022-09-01 10:49:48 -07:00
2022-09-19 11:11:11 -07:00
2022-10-10 10:08:39 -07:00
2022-09-01 10:49:48 -07:00
2022-08-05 14:13:12 -07:00
2022-08-08 13:23:26 -07:00
2022-08-11 13:45:23 -07:00
2022-09-14 12:56:39 -07:00
2022-08-19 11:13:14 -07:00
2022-08-08 13:23:26 -07:00
2022-02-04 13:58:28 -08:00
2022-08-19 11:13:14 -07:00
2022-09-01 10:49:48 -07:00
2022-09-01 10:49:48 -07:00
2022-08-25 09:43:29 -07:00
2022-09-14 12:56:39 -07:00
2022-02-04 13:58:28 -08:00
2022-09-19 14:35:24 -07:00
2022-10-21 11:37:28 -07:00
2022-05-20 15:26:59 -07:00
2022-06-13 10:22:36 -07:00
2022-06-10 15:04:15 -07:00
2022-02-04 13:58:28 -08:00
2022-08-19 11:13:16 -07:00