[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got 7a5ead6 061/145: vc-got-repository-url: avoid in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got 7a5ead6 061/145: vc-got-repository-url: avoid infinite loops in parsing |
Date: |
Thu, 9 Sep 2021 15:58:33 -0400 (EDT) |
branch: externals/vc-got
commit 7a5ead659d51fa249e2af1fcbf0ad79e969e5204
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
vc-got-repository-url: avoid infinite loops in parsing
add a missing forward-line and make sure we don't try to go past the
end of the file (another thing that may cause an infinite loop).
---
vc-got.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 8440bf5..f4121be 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -665,9 +665,11 @@ Value is returned as floating point fractional number of
days."
(when (search-forward heading nil t)
(forward-line)
(while (and (not found)
- (looking-at ".*=")) ;too broad?
+ (looking-at ".*=") ;too broad?
+ (not (= (point) (point-max))))
(when (looking-at ".*url = \\(.*\\)")
- (setq found (match-string-no-properties 1))))
+ (setq found (match-string-no-properties 1)))
+ (forward-line))
found)))))
(provide 'vc-got)
- [elpa] externals/vc-got a1839dc 131/145: don't include the common commit in log-outgoing, (continued)
- [elpa] externals/vc-got a1839dc 131/145: don't include the common commit in log-outgoing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 74b0000 138/145: install a custom process filter for `got send', ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 3efc759 141/145: cleanup, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f457868 024/145: typo, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 06d4d37 031/145: add Makefile, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got ddc59a0 057/145: remove extra parens from vc-got-unregister and fix pcase matchall, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f8a9db5 060/145: fix vc-got-repository-url for checkout of non-bare repos, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 9e01941 078/145: improve vc-dir presentation & document vc-got-stage in README, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a7777ea 079/145: list also staged addition/removals, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 668dc8e 068/145: vc-got--status: handle stage info and filter result, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7a5ead6 061/145: vc-got-repository-url: avoid infinite loops in parsing,
ELPA Syncer <=
- [elpa] externals/vc-got 0d57aba 072/145: remove the separator when showing a chunk to stage, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got d346ca6 084/145: ignore ignored files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 67e0b4d 096/145: add note for the future, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6ab1c7b 102/145: implement the tag creation part of vc-got-create-tag, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 887e069 090/145: make files an optional parameter, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7726b6c 097/145: silence some checkdoc warnings, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f701269 118/145: require log-edit to avoid a warning, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 241a3b1 111/145: implement unregister, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0071376 125/145: change the description in the header, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 622993f 117/145: remove vc-got-stage, ELPA Syncer, 2021/09/09