Re: Bare repository fetch/push race condition

2017-11-30 Thread Dmitry Neverov
Sorry for misleading subject. It should be "Race condition between pushing to and pushing from a bare repository"

Bare repository fetch/push race condition

2017-11-30 Thread Dmitry Neverov
It looks like there is a race condition between fetch and push in a bare repository in the following setup. There is a bare git repository on a local file system. Some process pushes to this repository via jgit. There is a cron task which pushes this repository to the backup remote repo over ssh. W

'git submodules update' ignores credential.helper config of the parent repository

2017-02-27 Thread Dmitry Neverov
I'm checking out a repository in a non-interactive environment and would like to disable interactive credential helpers. According to [1] it can be done by specifying an empty helper in a local config: [credential] helper = But the submodule update command ignores the helper specified in th

Credential helpers processing order

2016-08-16 Thread Dmitry Neverov
Hi, I wonder why credential helpers are called in the order: system, global, local, command-line and not in the reverse order? This make it impossible to provide a custom helper and disable default ones via command-line parameter. My use-case is to clone a repository in a non-interactive environme

Re: submodule.$name.url is ignored during submodule update

2015-03-19 Thread Dmitry Neverov
even though 'submodule.$name.url' had a different value. On Thu, Mar 19, 2015 at 2:16 PM, Dmitry Neverov wrote: > I want to use a custom url for both initial submodule clone and > submodule update. Git submodule man page states that if I run 'git > submodule init' and

Re: submodule.$name.url is ignored during submodule update

2015-03-19 Thread Dmitry Neverov
does use the custom url for initial submodule clone, but doesn't use it when cloned submodule needs to be updated. Is that by design? On Thu, Mar 19, 2015 at 2:09 PM, Doug Kelly wrote: > On Thu, Mar 19, 2015 at 4:27 AM, Dmitry Neverov > wrote: >> Hi, >> >> I've n

submodule.$name.url is ignored during submodule update

2015-03-19 Thread Dmitry Neverov
Hi, I've noticed that the 'submodule.$name.url' config parameter from the main repository is ignored when a submodule needs to be updated, the submodule's 'remote.origin.url' is used instead. Is there any way to customize the submodule url for both the initial clone and for updates? -- Dmitry --

Re: Git gc removes all packs

2015-02-27 Thread Dmitry Neverov
Thu, Feb 05, 2015 at 04:13:03PM +0100, Dmitry Neverov wrote: > >> I'm using git p4 for synchronization with perforce. Sometimes after 'git >> p4 rebase' git starts a garbage collection. When gc finishes a local >> repository contains no pack files only loose object

Git gc removes all packs

2015-02-05 Thread Dmitry Neverov
Hi, I'm experiencing a strange behavior of automatic git gc which corrupts a local repository. Git version 2.2.2 on Mac OS X 10.10.1. I'm using git p4 for synchronization with perforce. Sometimes after 'git p4 rebase' git starts a garbage collection. When gc finishes a local repository contains n

Re: submodule update and core.askpass

2013-11-22 Thread Dmitry Neverov
BTW, a workaround is to pass a path to askpass script in the GIT_ASKPASS environment variable. Jens Lehmann writes: > Am 16.11.2013 22:42, schrieb Thomas Rast: >> Dmitry Neverov writes: >> >>> git -c core.askpass=pass.sh clone main-repo >>> cd main-re

submodule update and core.askpass

2013-11-16 Thread Dmitry Neverov
ct, it seems like it started failing from commit be8779f7ac9a3be9aa783df008d59082f4054f67. I've checked: submodule update works fine in 1.8.5.rc2 with removed call to clear_local_git_env. Is there any way to make git submodule update respect core.askpass option, so one can use it in scripts?