Skip to content

Commit

Permalink
Dodge a byte-compilation warning in unfinished code in `eldev--vc-fet…
Browse files Browse the repository at this point in the history
…ch-repository`.
  • Loading branch information
doublep committed Dec 7, 2024
1 parent f4f97e7 commit 3c647fb
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions eldev-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,24 @@ Since 1.2."
:discard-ansi t
:die-on-error t
(string-trim (buffer-string))))
(progn (eldev-trace "Reusing existing Git clone of `%s'..." url)
(eldev-call-process (eldev-git-executable) `("fetch" "--depth=1" "origin" "HEAD")
:die-on-error t)
(eldev-call-process (eldev-git-executable) `("checkout" "FETCH_HEAD")
:die-on-error t)
(setf reused-existing t))
(when update
(eldev-trace "Reusing existing Git clone of `%s'..." dir)
(eldev-verbose "Fetching upgrades from `%s'..." url)
(eldev-call-process (eldev-git-executable) `("fetch" "--depth=1" "origin" "HEAD")
:die-on-error t)
(eldev-call-process (eldev-git-executable) `("checkout" "FETCH_HEAD")
:die-on-error t)
(setf reused-existing t))
(eldev-trace "Discarding existing Git clone at `%s': wrong remote URL" dir)
(ignore-errors (delete-directory dir t)))))
(unless reused-existing
(eldev-verbose "Cloning Git repository `%s'..." url)
(eldev-call-process (eldev-git-executable) `("clone" ,url "--single-branch" "--depth=1" ,dir)
:die-on-error t))
;; FIXME: Try to build stable versions from tags.
(when t
(setf stable nil))
(eldev-dump dir url default-directory)
(let ((package (eldev-package-descriptor dir)))
(unless stable
(eldev-call-process (eldev-git-executable) `("--no-pager" "log" "-1" "--no-color" "--format=%cI" "--no-patch")
Expand Down

0 comments on commit 3c647fb

Please sign in to comment.