{"id":7034,"date":"2024-07-30T10:09:10","date_gmt":"2024-07-30T01:09:10","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=7034"},"modified":"2024-07-30T13:35:24","modified_gmt":"2024-07-30T04:35:24","slug":"git-transport-file-not-allowed","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/7034","title":{"rendered":"[git] transport &#8216;file&#8217; not allowed"},"content":{"rendered":"<h3>\u75c7\u72b6<\/h3>\n<p><strong>git submodule update<\/strong> \u306a\u3069\u306b\u304a\u3044\u3066, <strong>transport &apos;file&apos; not allowed<\/strong> \u304c\u767a\u751f\u3057\u3066\u5931\u6557\u3059\u308b\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u306e\u4f8b<\/h3>\n<pre class=\"lang:sh decode:true \" >$ git submodule update\r\nCloning into 'C:\/Users\/JaneDoe\/Projects\/USO800\/MainSystem\/SpaceWarp'...\r\nfatal: transport 'file' not allowed\r\nfatal: clone of '\/\/WindowsFileServer\/_git\/SpaceWarp' into submodule path 'C:\/Users\/JaneDoe\/Projects\/USO800\/MainSystem\/SpaceWarp' failed\r\nFailed to clone 'MainSystem\/SpaceWarp'. Retry scheduled\r\nCloning into 'C:\/Users\/JaneDoe\/Projects\/USO800\/MainSystem\/SpaceWarp'...\r\nfatal: transport 'file' not allowed\r\nfatal: clone of '\/\/WindowsFileServer\/_git\/SpaceWarp' into submodule path 'C:\/Users\/JaneDoe\/Projects\/USO800\/MainSystem\/SpaceWarp' failed\r\nFailed to clone 'MainSystem\/SpaceWarp' a second time, aborting<\/pre>\n<p><!--more--><\/p>\n<h3>\u539f\u56e0<\/h3>\n<h4>\u539f\u56e0\u306e\u6982\u7565<\/h4>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f <strong>file\u30d7\u30ed\u30c8\u30b3\u30eb\u8ee2\u9001<\/strong> \u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3002<\/p>\n<h4>\u539f\u56e0\u306e\u8a73\u7d30<\/h4>\n<p>Windows\u30d5\u30a1\u30a4\u30eb\u5171\u6709 \u3084 NFS(Network File System) \u306a\u3069\u304c <strong>file\u30d7\u30ed\u30c8\u30b3\u30eb<\/strong> \u306b\u8a72\u5f53\u3057\u307e\u3059\u3002file\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u5171\u6709\u3055\u308c\u305fgit\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u60aa\u610f\u3092\u6301\u3063\u305f\u6539\u7ac4\u306e\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u63a8\u5968\u3055\u308c\u307e\u305b\u3093\u3002\u60aa\u610f\u3092\u6301\u3063\u305f\u6539\u7ac4\u3092\u53d7\u3051\u305fgit\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u306e\u30de\u30eb\u30a6\u30a8\u30a2\u611f\u67d3\u3092\u9632\u3050\u305f\u3081\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f\u7981\u6b62\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>file\u30d7\u30ed\u30c8\u30b3\u30eb\u8ee2\u9001\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u672c\u4f53\u3082\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u7981\u6b62\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e2\u30b8\u30e5\u30fc\u30eb\u672c\u4f53\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f GitHub \u306a\u3069\u516c\u5f0f\u306a\u30b5\u30a4\u30c8\u306b\u7f6e\u304d\u3001\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3060\u3051\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u30ed\u30fc\u30ab\u30eb\u306e\u5171\u6709\u30b5\u30fc\u30d0\u306b\u914d\u7f6e\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n<h3>\u89e3\u6c7a\u7b56<\/h3>\n<h4>\u66ab\u5b9a\u5bfe\u7b56<\/h4>\n<p>file\u30d7\u30ed\u30c8\u30b3\u30eb\u8ee2\u9001\u3092\uff08\u6539\u7ac4\u30ea\u30b9\u30af\u3092\u627f\u77e5\u306e\u3046\u3048\u3067\uff09\u8a31\u53ef\u3059\u308b\u3002\u30a4\u30f3\u30c8\u30e9\u30cd\u30c3\u30c8\u306b\u914d\u7f6e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308c\u3070\u60aa\u610f\u3092\u6301\u3063\u305f\u6539\u7ac4\u306f\u306a\u3044\u3068\u307f\u306a\u3057\u3066\u8a31\u53ef\u3059\u308b\u3002<\/p>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ git config --global protocol.file.allow always<\/pre>\n<h4>\u6839\u672c\u5bfe\u7b56<\/h4>\n<p>(Submodule\u3092\u914d\u7f6e\u3057\u3066\u3044\u308b)\u5171\u6709git\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ee2\u9001\u30d7\u30ed\u30c8\u30b3\u30eb\u3092 <strong>SSH\u30d7\u30ed\u30c8\u30b3\u30eb<\/strong> \u3084 <strong>HTTP\/S\u30d7\u30ed\u30c8\u30b3\u30eb<\/strong> \u306a\u3069\u3001\u3088\u308a\u5b89\u5168\u306a\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u7f6e\u304d\u63db\u3048\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 git submodule update \u306a\u3069\u306b\u304a\u3044\u3066, transport &apos;file&apos; not allowed \u304c\u767a\u751f\u3057\u3066\u5931\u6557\u3059\u308b\u3002 \u30a8\u30e9\u30fc\u306e\u4f8b $ git submodule update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-7034","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=7034"}],"version-history":[{"count":16,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7034\/revisions"}],"predecessor-version":[{"id":7043,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7034\/revisions\/7043"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=7034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=7034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=7034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}