Skip to content

Commit

Permalink
fix op/git-last-change-date regex match error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmx committed Jun 17, 2016
1 parent 87b1b1d commit a7b28a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-git.el
Expand Up @@ -104,7 +104,7 @@ presented by REPO-DIR, FILEPATH is the path of target file, can be absolute or
relative."
(let* ((git-repo repo-dir)
(output (git-run "log" "-1" "--format=\"%ci\"" "--" filepath)))
(when (string-match "\\`\\([0-9]+-[0-9]+-[0-9]+\\) .*\n\\'" output)
(when (string-match "\\([0-9]+-[0-9]+-[0-9]+\\)" output)
(match-string 1 output))))

(defun op/git-remote-name (repo-dir)
Expand Down

0 comments on commit a7b28a1

Please sign in to comment.