{"thread":{"id":"51351","subject":"git fetch --shallow-since hangs","startedAt":"2019-06-20T10:59:49Z","lastAt":"2019-06-20T10:59:49Z","messageCount":1,"participants":["Yuri D'Elia"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"377650","messageId":"87h88kh691.fsf@wavexx.thregr.org","threadId":"51351","inReplyTo":null,"subject":"git fetch --shallow-since hangs","fromName":"Yuri D'Elia","fromEmail":"wavexx@thregr.org","sentAt":"2019-06-20T10:59:38Z","receivedAt":"2019-06-20T10:59:49Z","isPatch":false,"sender":{"key":"wavexx@thregr.org","avatar":null},"body":"I'm trying to run git fetch using --shallow-since with a date range that\nresults in no commits to be selected.\n\nIn this scenario the command hangs indefinitely:\n\ngit fetch --shallow-since=2019-05-20 -vv\nServer supports multi_ack_detailed\nServer supports side-band-64k\nServer supports ofs-delta\nServer version is git/2.21.0\nwant 33eeead1a93fed4d25ff90b0b45acec5d822c13c (refs/heads/B-2012-04)\nwant 49455fcb45a950adf7702d96a2be0ff70cd06577 (refs/heads/B-2012-07)\nwant c9964f78fd7d1a43db7abca9d2ed2d04ffc7d9a3 (refs/heads/B-2012-08)\nwant bb8869e3c2697c901b27658cadeb994dd8193897 (refs/heads/B-2012-11)\nwant 386210eb1ed98abeaa678cc90de639a7773d0802 (refs/heads/B-2013-04)\nwant b1828494a89fe4532549df31ff93a7816b7c6341 (refs/heads/B-2013-07)\nwant ff6829912631132fe9b6d8880a6ea8a14676b5c9 (refs/heads/B-2013-09)\nwant 4c59a0e2317b3bbd6a8bfdad89dbc2c8ca172f8d (refs/heads/B-2013-12)\nwant ce9729b1c2f26f5a1eab6c623d710df50b4e87fc (refs/heads/B-2014-03)\nwant 39db34fc97fcafb43faaaba25618473cb2fa8ed6 (refs/heads/B-2014-08)\nwant f710bb0552db364c40cac542fb591af3b384210c (refs/heads/B-2014-12)\nwant d6569610cf5da4aced818ba246aa9bc3ad4d7c4a (refs/heads/B-2015-04)\nwant 3333479999a695f07c30ffca319fa38fc74e01e3 (refs/heads/B-2017-05)\nwant 111801742054e910a214fca96531824e6f806bd8 (refs/heads/V-2012-04)\nwant e64b751dd156ee7ee06521b9670284fbe2b79b8e (refs/heads/V-2012-04.1)\nwant 8bf4adb022e39d06872758d68672fc6f327513cb (refs/heads/V-2012-04.2)\nwant 31254791e193524c634e19dbcd766b0254f0f21b (refs/heads/V-2012-07)\nwant 245045e41db2e87c9467830d8fdb570a17b321ed (refs/heads/V-2012-07.1)\nwant 6ae10ad37c9083e83a43b1679d5514302ce0355d (refs/heads/V-2012-07.2)\nwant f07291acd0eddddb168d322e27c9425ca084f239 (refs/heads/V-2012-08.1)\nwant 4a5e3ab5f4eb412b905ddb7e91e0db70bd6cd17f (refs/heads/V-2012-11.1)\nwant 4b36f254523dbc1d2a80f29886d96cb9a6851584 (refs/heads/V-2013-04)\nwant f2040101186b31bc99e0f8d4c370101ad0f45ac8 (refs/heads/V-2013-07)\nwant ba38be154fb9b5627e8c74b2cd75df628961d998 (refs/heads/V-2013-07.1)\nwant 6029a5638a486886be507c78cc876f266dca2cc7 (refs/heads/V-2013-09)\nwant 370adcc9a4e82b75a83a999f6cf08d83cba31ce8 (refs/heads/V-2013-09.1)\nwant d89488b9e3dbd53e4b96bb00f1075901306fcf58 (refs/heads/V-2013-12)\nwant 86f8eb18bc5657566793ce7ec9c3c05de9de994b (refs/heads/V-2014-03)\nwant da6f1539444152bff219732ce694454a33444457 (refs/heads/V-2014-03.1)\nwant b68d4411d16d293817127856f396d460894e8978 (refs/heads/V-2014-03.2)\nwant d11d83083b31d44940ff78b0a8e656f21473ab46 (refs/heads/V-2014-08)\nwant 6d81e7ce60bf125c1cd5528a943e73164f8d3bbe (refs/heads/V-2014-08.1)\nwant 648f93cab60e4525b4278aa172b50740040ce817 (refs/heads/V-2014-12)\nwant baf41800559a7a3b0d0c6963f01c04bbd4d65be5 (refs/heads/V-2015-04)\nwant 619d51d2592cd8dc572c252f4c7b169c04aad6fb (refs/heads/V-2017-05)\nwant ef021b04df54a5f94e164b79133f1e64b9edc02e (refs/heads/master)\nfatal: no commits selected for shallow requests\n<hangs here>\n\nI reproduced this on the client side using git 2.20.1 and git\n2.22.0.455.g172b71a6c5 (the latest debian unstable package).\n\n"}]}