Skip to content

Commit bdec03d

Browse files
ttaylorrdscho
andcommitted
lookup-commit.sh: take 'seen' from the source
The 'seen' branch is pushed up to the official source at git/git, so there is no need to take it from the gitster remote. Update that remote to instead point at git/git. Co-authored-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Taylor Blau <me@ttaylorr.com>
1 parent 609d708 commit bdec03d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/lookup-commit.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ update_gitgit_dir () {
7070

7171
if git -C "$GITGIT_DIR" rev-parse --verify refs/remotes/gitster/seen >/dev/null 2>&1
7272
then
73+
# Let's take 'seen' from the official source at git.git.
74+
git -C "$GITGIT_DIR" remote set-url gitster https://github.com/git/git
7375
git -C "$GITGIT_DIR" fetch gitster ||
7476
die "Could not update the 'gitster' remote to $GITGIT_DIR"
7577
else
76-
git -C "$GITGIT_DIR" remote add -f gitster https://github.com/gitster/git ||
78+
git -C "$GITGIT_DIR" remote add -f gitster https://github.com/git/git ||
7779
die "Could not add the 'gitster' remote to $GITGIT_DIR"
7880
fi
7981
}

0 commit comments

Comments
 (0)