2014年11月28日金曜日

WindowsのSourceTreeでGit Pull/Pushが異様に遅い

内蔵GitにしてもシステムGitにしてもダメ。
なお、システムGit(git 2.1.1)は、コマンドラインから実行すると早い。

.git/config
を開いて

[remote "origin"]
url = https://hogehoge.hogehoge

のところを

[remote "origin"]
url = https://user@password:hogehoge.hogehoge

のように、IDとパスワードを入れたら復活した。
が、あんまり気分の良い解決策じゃないなぁ。
その後色々いじってみたが根本解決策は不明。

ちなみに、msysGit(git version 1.9.4.msysgit.2)のGit Bashは、上記対応を実施しても未だに遅い。

謎だ。。

Proxy Switchy! Auto Switch Mode doesn't work on windows 7

it can be fixed by replacing an dll file.

C:\Users\\AppData\Local\Google\Chrome\User Data\Default\Extensions\caehdcpeofiiigpdhbabniblemipncjj\1.6.3_0\plugins\npSwitchy.dll

Issue 338 - switchy - auto switch mode set wrong pac url - Manage and switch between multiple proxy profiles quickly and easily. - Google Project Hosting
https://code.google.com/p/switchy/issues/detail?id=338

1. Close all Chrome windows
2. rename the dll like npSwitchy.dll -> npSwitchy.dll.bak
3. DL new dll via https://switchy.googlecode.com/issues/attachment?aid=3380009000&name=npSwitchy.dll&token=ABZ6GAeDFOJfek2l0I0PweYzcQopJhqAgg%3A1417172501056

That's it.

Proxy Switchy! のAuto Switch Modeがあるときから使えなくなっていた。
ずっとほっておいたが本腰を入れて調べたところ、どうも自動生成しているPACファイルのファイル名が
SwitchyAuto.pac?XXXXX
になるべきところ、
SwitchyAuto.pacc?XXXXX
と、なぜか拡張子のcが余分についてくるようになってしまった模様。

この問題を解消してくれるDLLが下記URLに公開されていたので、
それをDLして差し替えたところ、問題が解消した。
Issue 338 - switchy - auto switch mode set wrong pac url - Manage and switch between multiple proxy profiles quickly and easily. - Google Project Hosting
https://code.google.com/p/switchy/issues/detail?id=338

https://switchy.googlecode.com/issues/attachment?aid=3380009000&name=npSwitchy.dll&token=ABZ6GAeDFOJfek2l0I0PweYzcQopJhqAgg%3A1417172501056

#リンク先にあるように、pacファイルのアドレスを入力する欄に記載されているパスが、
 何故か\から%5Cに置き換わってしまったが、まぁ問題ない模様。