{"id":3866,"date":"2020-12-13T12:03:44","date_gmt":"2020-12-13T03:03:44","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3866"},"modified":"2020-12-13T12:43:28","modified_gmt":"2020-12-13T03:43:28","slug":"brew-error-homebrew-core-is-a-shallow-clone","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3866","title":{"rendered":"[brew] Error: homebrew-core is a shallow clone."},"content":{"rendered":"<h3>\u75c7\u72b6<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >% brew update\r\nError: homebrew-core is a shallow clone. To `brew update` first run:\r\n  git -C \"\/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core\" fetch --unshallow\r\nThis restriction has been made on GitHub's request because updating shallow\r\nclones is an extremely expensive operation due to the tree layout and traffic of\r\nHomebrew\/homebrew-core. We don't do this for you automatically to avoid\r\nrepeatedly performing an expensive unshallow operation in CI systems (which\r\nshould instead be fixed to not use shallow clones). Sorry for the inconvenience!<\/pre>\n<p><!--more--><\/p>\n<h3>\u89e3\u6c7a\u65b9\u6cd5<\/h3>\n<p>\u300eunshallow\uff08\u6d45\u3044\u30af\u30ed\u30fc\u30f3\u7121\u52b9\uff09\u300f\u3067git\u30ea\u30dd\u30b8\u30c8\u30ea &quot;homebrew-core&quot; \u3092\u30af\u30ed\u30fc\u30f3\uff08\u518d\u30d5\u30a7\u30c3\u30c1\uff09\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >% git -C \"\/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core\" fetch --unshallow<\/pre>\n<p><code>-C<\/code> : \u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3067git\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002cd\u30b3\u30de\u30f3\u30c9\u3067\u30ab\u30ec\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0\u3092\u79fb\u52d5\u3057\u3066\u304b\u3089, git\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u624b\u9806\u3092\u7701\u7565\u3059\u308b\u3002<\/p>\n<h3>\u88dc\u8db3\u8aac\u660e<\/h3>\n<p>\u30b5\u30fc\u30d0\u4e0a\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\uff08\u53d6\u5f97\u3059\u308b\uff09\u3068\u304d\u3001\u4e00\u822c\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u306f\u904e\u53bb\u306e\u5168\u3066\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3084\u5b8c\u5168\u306a\u5c65\u6b74\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002\u305d\u3053\u3067\u300eshallow clone(\u6d45\u3044\u30af\u30ed\u30fc\u30f3)\u300f\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3044\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8ee2\u9001\u6642\u9593\u3068\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30ba\u306e\u7bc0\u7d04\u3092\u56f3\u308b\u3002\u3057\u304b\u3057 &quot;homebrew&quot; \u306f\u3001\u5b8c\u5168\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30af\u30ed\u30fc\u30f3\u3092\u5fc5\u8981\u3068\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 % brew update Error: homebrew-core is a shallow clone. To `brew update` first run: git -C &#8220;\/usr\/local\/Homeb [&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":[48],"class_list":["post-3866","post","type-post","status-publish","format-standard","hentry","category-memo","tag-homebrew"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3866","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=3866"}],"version-history":[{"count":12,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3866\/revisions"}],"predecessor-version":[{"id":3879,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3866\/revisions\/3879"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}