浏览代码

Add assertion

master
10sr 7 年前
父节点
当前提交
584ed6df5e
签署人:: 10sr GPG 密钥 ID: C384BB17CBB19347
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      emacs.el

+ 3
- 0
emacs.el 查看文件

@@ -2479,6 +2479,9 @@ When PATH is omitted or nil, it is calculated from current file or directory."
(setq path (setq path
(or path (or path
(git-walktree--path-in-repository path))) (git-walktree--path-in-repository path)))
;; PATH must not start with and end with slashes
(cl-assert (not (string-match "\\`/" path)))
(cl-assert (not (string-match "/\\'" path)))


(let ((obj nil)) (let ((obj nil))
(while (not obj) (while (not obj)


正在加载...
取消
保存