branch: elpa/magit
commit 8783759256d30f0a72e8c703c0c538b67359edd7
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-wip--commitable-p: Return nil before initial commit
Previously we errored in `magit-wip--update-ref', because that
needs to know the current branch, which is only possible if that
actually exists.
---
lisp/magit-wip.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-wip.el b/lisp/magit-wip.el
index 7a68cb7c5f..c6f041be28 100644
--- a/lisp/magit-wip.el
+++ b/lisp/magit-wip.el
@@ -291,7 +291,8 @@ commit message."
(and (not magit--wip-inhibit-autosave)
buffer-file-name
(magit-inside-worktree-p t)
- (magit-file-tracked-p buffer-file-name)))
+ (magit-file-tracked-p buffer-file-name)
+ (magit-wip-get-ref)))
;;; Log