Skip to content

Commit 9f27c3a

Browse files
committed
refresh stale git index on listing
1 parent 8868faa commit 9f27c3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

epm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function main() {
1010
# @VARIABLE: VERSION
1111
# @DESCRIPTION:
1212
# Version of this script.
13-
VERSION=0.2.10
13+
VERSION=0.2.11
1414

1515
# Default base URL for short package names
1616
BASE_URL=${EPM_REPO_BASE:-"https://github.com/e-wrks"}
@@ -528,6 +528,7 @@ FLAGS:
528528
(
529529
edo pushd "${pkg_dir}" >/dev/null
530530
if [ -d .git ]; then
531+
git update-index --refresh
531532
echo "${pkg_id} - $(git describe --all --dirty --broken)"
532533
if ${SHOW_REPO}; then
533534
echo " - From: $(
@@ -560,6 +561,7 @@ FLAGS:
560561
pkg_dir=$(dirname "${cabal_file}")
561562
(
562563
edo pushd "${pkg_dir}" >/dev/null
564+
git update-index --refresh
563565
echo "${pkg_id} - $(git describe --all --dirty --broken)"
564566
if ${SHOW_REPO}; then
565567
echo " - From: $(

0 commit comments

Comments
 (0)