Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: replace recently seen logic #445

Merged

Conversation

derrickstolee
Copy link
Collaborator

I was failing to make this work because I as modifying the wrong version of the git-update-git-for-windows file.

I'm still struggling to show that this works when run from the task scheduler (after installing a lower version and replacing the script in one place), but it works when I manually run the script that is generated by this installer.

sed -i -e '/^# when confirmation to do so is given./a\
use_recently_seen=no' \
$b/git-extra/git-update-git-for-windows
sed -i -e '6 a use_recently_seen=no' \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer the form that does not expect line number 6 to be the one, but that matches the line after which we want to append.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The good news is that this area of the file is all comments, so inserting to a specific line is more stable than matching the text of a comment, hence the choice I made here.

.github/workflows/build-git-installers.yml Show resolved Hide resolved
Copy link
Member

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably good enough for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants