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

[WIP] Fix initial git gui message encoding #665

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

yaras
Copy link

@yaras yaras commented Feb 23, 2016

Commit

This fix refers #664

After git merge --squash git creates .git/SQUASH_MSG (UTF-8 encoded)
which contains squashed commits. When run git gui it copies SQUASH_MSG
to PREPARE_COMMIT_MSG, but without honoring UTF-8. This leads to encoding
problems on git gui commit prompt.

The same applies on git cherry-pick conflict, where MERGE_MSG is created
and then is copied to PREPARE_COMMIT_MSG.

In both cases PREPARE_COMMIT_MSG must be configured to store data in UTF-8.

Signed-off-by: yaras yaras6@gmail.com

Worklist

  • Apply patch and rebuild
  • Manual test for cherry-pick
  • Manual test for squash
  • Contact @patthoyts and announce this patch
  • Check whether it is possible to write tests for git-gui and if so, write some tests

This fix refers git-for-windows#664

After `git merge --squash` git creates .git/SQUASH_MSG (UTF-8 encoded)
which contains squashed commits. When run `git gui` it copies SQUASH_MSG
to PREPARE_COMMIT_MSG, but without honoring UTF-8. This leads to encoding
problems on `git gui` commit prompt.

The same applies on git cherry-pick conflict, where MERGE_MSG is created
and then is copied to PREPARE_COMMIT_MSG.

In both cases PREPARE_COMMIT_MSG must be configured to store data in UTF-8.

Signed-off-by: yaras <yaras6@gmail.com>
@dscho
Copy link
Member

dscho commented Feb 23, 2016

Thank you! Unfortunately, it won't make it into the imminent 2.7.2 release, but the next version will have it!

dscho added a commit that referenced this pull request Feb 23, 2016
Fix initial git gui message encoding
@dscho dscho merged commit bc859c8 into git-for-windows:master Feb 23, 2016
@yaras
Copy link
Author

yaras commented Feb 23, 2016

Thank you!

I'm glad I could contribute to this repository.

Unfortunately, it won't make it into the imminent 2.7.2 release, but the next version will have it!

Sure

dscho added a commit to git-for-windows/build-extra that referenced this pull request Feb 24, 2016
We [now handle UTF-8 merge and squash messages correctly in Git
GUI](git-for-windows/git#665).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@yaras yaras deleted the fix-git-664 branch February 29, 2016 16:57
dscho added a commit that referenced this pull request Mar 15, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Mar 18, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Mar 29, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Apr 4, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Apr 30, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request May 20, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 7, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 9, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 9, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 9, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 9, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jun 14, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 12, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 16, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 23, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 23, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 23, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 27, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 27, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Jul 29, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Aug 2, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Aug 2, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Sep 24, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Sep 24, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Sep 26, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 3, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 4, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 5, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 5, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 7, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 7, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 9, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 12, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 12, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 13, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 13, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 13, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 15, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 18, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 18, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 18, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Oct 20, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 26, 2016
Fix initial git gui message encoding
dscho added a commit that referenced this pull request Oct 29, 2016
Fix initial git gui message encoding
dscho pushed a commit that referenced this pull request Nov 9, 2016
Fix initial git gui message encoding
benpeart pushed a commit that referenced this pull request Jan 18, 2018
Bring the gvfs/master branch up to date with the v2.10.0.windows.1 tag

Related work items: #246, #677, #675, #665, #156, #305, #159, #726, #620, #443
mjcheetham pushed a commit to mjcheetham/git that referenced this pull request Jul 23, 2024
By default, GVFS Protocol-enabled Scalar clones will fall back to the
origin server if there is a network issue with the cache servers.
However (and especially for the prefetch endpoint) this may be a very
expensive operation for the origin server, leading to the user being
throttled. This shows up later in cases such as 'git push' or other web
operations.

To avoid this, create a new config option, 'gvfs.fallback', which
defaults to true. When set to 'false', pass '--no-fallback' from the
gvfs-helper client to the child gvfs-helper server process.

This will allow users who have hit this problem to avoid it in the
future. In case this becomes a more widespread problem, engineering
systems can enable the config option more broadly.

Enabling the config will of course lead to immediate failures for users,
but at least that will help diagnose the problem when it occurs instead
of later when the throttling shows up and the server load has already
passed, damage done.

 This change only applies to interactions with Azure DevOps and the
GVFS Protocol.

---

* [x] This change only applies to interactions with Azure DevOps and the
      GVFS Protocol.
dscho added a commit to dscho/git that referenced this pull request Oct 21, 2024
By default, GVFS Protocol-enabled Scalar clones will fall back to the
origin server if there is a network issue with the cache servers.
However (and especially for the prefetch endpoint) this may be a very
expensive operation for the origin server, leading to the user being
throttled. This shows up later in cases such as 'git push' or other web
operations.

To avoid this, create a new config option, 'gvfs.fallback', which
defaults to true. When set to 'false', pass '--no-fallback' from the
gvfs-helper client to the child gvfs-helper server process.

This will allow users who have hit this problem to avoid it in the
future. In case this becomes a more widespread problem, engineering
systems can enable the config option more broadly.

Enabling the config will of course lead to immediate failures for users,
but at least that will help diagnose the problem when it occurs instead
of later when the throttling shows up and the server load has already
passed, damage done.

 This change only applies to interactions with Azure DevOps and the
GVFS Protocol.

---

* [x] This change only applies to interactions with Azure DevOps and the
      GVFS Protocol.
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