Use git rev-parse to get repository version
* version.el (emacs-repository-get-version): Use git rev-parse instead of git log.
This commit is contained in:
parent
899a5a9882
commit
1033147831
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-11-15 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* version.el (emacs-repository-get-version): Use git rev-parse
|
||||
instead of git log.
|
||||
|
||||
2014-11-15 Fabián Ezequiel Gallina <fgallina@gnu.org>
|
||||
|
||||
* progmodes/python.el (python-indent-calculate-levels): Fix
|
||||
|
|
|
@ -187,8 +187,8 @@ only ask the VCS if we cannot find any information ourselves."
|
|||
(let ((default-directory (file-name-as-directory dir)))
|
||||
(and (eq 0
|
||||
(condition-case nil
|
||||
(call-process "git" nil '(t nil) nil "log"
|
||||
"-1" "--pretty=format:%H")
|
||||
(call-process "git" nil '(t nil) nil "rev-parse"
|
||||
"HEAD")
|
||||
(error nil)))
|
||||
(not (zerop (buffer-size)))
|
||||
(replace-regexp-in-string "\n" "" (buffer-string))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue