From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2240171C7 for ; Thu, 19 Oct 2023 09:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C267CB8 for ; Thu, 19 Oct 2023 02:33:47 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id C4A311FD8C for ; Thu, 19 Oct 2023 09:33:45 +0000 (UTC) Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 8660C2C4D9 for ; Thu, 19 Oct 2023 09:33:45 +0000 (UTC) Date: Thu, 19 Oct 2023 11:33:44 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: git@vger.kernel.org Subject: pygit2 claims repository does not exist on GIT_DIR_INVALID_OWNERSHIP Message-ID: <20231019093344.GS6241@kitsune.suse.cz> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Level: X-Spamd-Bar: / Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 149.44.160.134 is neither permitted nor denied by domain of msuchanek@suse.de) smtp.mailfrom=msuchanek@suse.de X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [-0.57 / 50.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[git@vger.kernel.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.60)[~all:c]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.20)[suse.de]; VIOLATED_DIRECT_SPF(3.50)[]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-1.06)[87.78%] X-Spam-Score: -0.57 X-Rspamd-Queue-Id: C4A311FD8C Hello, after upgrade from git 2.26 to git 2.35 pygit would claim that my repository does not exist: :~> git ls-remote /srv/git/kernel-source.git | head -n3 41037b9c54949ab7df9d32e8bc753c059b27c66c HEAD 7a68c4c0c640ac07b89722271f866287b9047459 refs/heads/ALP-current 4993d1b0a96a0fa7fb0e87d3b1725bc775162283 refs/heads/ALP-current-RT :~> python3 Python 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pygit2 >>> pygit2.Repository("/srv/git/kernel-source.git") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.6/site-packages/pygit2/repository.py", line 1498, in __init__ path_backend = init_file_backend(path, flags) _pygit2.GitError: Repository not found at /srv/git/kernel-source.git >>> Could a reasonable diagnostic be provided? Thanks Michal