Skip to content

Conversation

@derrickstolee
Copy link

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.

@derrickstolee derrickstolee requested a review from dscho October 12, 2021 16:56
@derrickstolee derrickstolee self-assigned this Oct 12, 2021
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
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.

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