1. 程式人生 > >SourceTree Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for...

SourceTree Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for...

昨天用SourceTree管理git專案,今天運維人員說我的賬號每隔十分鐘就會去請求gitlab伺服器,日誌如下

Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:15:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:15:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:15:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:25:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:25:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:25:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:35:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:35:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}
Started GET "/moshilei/test.git/info/refs?service=git-upload-pack" for 183.16.192.2 at 2017-04-01 10:35:20 +0800
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"moshilei", "project_id"=>"test.git"}

最終定位到SourceTree,看了下它的設定,發現檢查遠端default的更新,每隔10分鐘預設是勾選的


去掉勾即可