Branch: Tag:

2018-04-24

2018-04-24 10:49:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Support committing on a detached HEAD.

This fixes failures to amend commits during interactive rebase.

567:       int check_not_tracking()    { -  string local_branch = run_git("symbolic-ref", "HEAD"); +  string local_branch = run_git_ex(128, "symbolic-ref", "HEAD"); +  if (local_branch == "") { +  return 0; +  }    if (!has_prefix(local_branch, "refs/heads/")) {    write("Attempt to commit to non-branch: %s.\n", local_branch);    }