[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Cannot push commit on current branch
|
- From: Thomas Keller <Thomas.Keller@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2025 15:46:05 +0000
- Accept-language: de-DE, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gls-itservices.com; dmarc=pass action=none header.from=gls-itservices.com; dkim=pass header.d=gls-itservices.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MFTCkN7Z23G39XYmezMDM64QMhsHqjNWXgb14n4EmBQ=; b=ArqNB6cJ0UvMVj/Lo9/4oZ5u7OvbtT73DwiF/e1CRRtmSnp+lRE6L7jQ68S+/wbxt/PlhH4NJICbcnouoovOYKJkwOzQcWxuSEd6oH4S/H0EKMIW82aUk7/zDtZiXja3qi9fiTctfuqVivdSJbDalJH66kcIyaalA29SEgmKbnNghZK8+U+eR524UZSPeohucSKc6Q30f/xDP/+hElYcIlFfxAjVuMWxJKNHgRHL7z6Qwf6Cju149F4ZnhO+rwRGbtAmFGRLtaJM7EIWvgnsjTAk2b9maPaI8Hyzt7MuktY1bdR6+C8b0jia/eo0Xdc6ZSMVDXDLtFi1sjVMPqCsNg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RZbsppqS/isJScPxDGlhqhIDyfmQKWbbQDqu42EIlHBkKmogoEbEP5Lu4QfKt1eEg30WHSY5l/x2r6+xigOUVHi9hlZfMDCdZSbnmpf8cuZ1mvoeFkDYTtiUBXzRTWahIL8+v3lkl7Nhfnr2RaH7IS2op72Et/maartFOgdWBt1VQQ0d2MwK/ADfRKzTBR/UVqKd7kHok4LLfSWkaGZKt2nxCUKT/5o55IHBrh5i1TQelmbPqfd5QBPcwKnpeyUZIzyuLlnJNbPlSC7t3yzPNlKT+nAaGdn+/keO5CbB0jyEpf903i91IQr8woFkIiixoin/ukWXCy89p3iz5l1Afg==
- Delivered-to: jgit-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/jgit-dev/>
- List-help: <mailto:jgit-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=unsubscribe>
- Thread-index: AQHcCHjVHzOz0sFcPUOUA2cJ6vsEBQ==
- Thread-topic: Cannot push commit on current branch
Hello all!
I'm working on a workspace that has been checked out via Jenkins (Github Plugin). I create a commit, tag it and later want to push the said commit. All works fine, except that the commit is not pushed to my branch ref, but later only exists tagged, i.e. is
otherwise detached.
At first I checked git log after the commit and that seemed to have went fine:
+ git log --decorate -n2
16:33:16 commit 58d0e3e5eabada2d33eec5ac87950109fbede70a (HEAD -> release/art/89.2)
16:33:16 Author: ...
16:33:16 Date: Fri Aug 8 14:33:16 2025 +0000
16:33:16
16:33:16 ...
16:33:16
16:33:16 commit 672944ffad5587f67d6fb2a31639d11c57d849fc (origin/release/art/89.2)
16:33:16 Author: ...
16:33:16 Date: Fri Aug 8 15:51:11 2025 +0200
16:33:16
16:33:16 ...
so HEAD moved forward to
58d0e3e5.
But still, when I push like this (Kotlin) the branch ref is not updated:
push().apply {
setCredentialsProvider(UsernamePasswordCredentialsProvider(..., ...))
setPushTags()
setPushAll()
call()
}
I guess this has something to do with a missing tracking branch setup, and usually I do `-u` or `--set-upstream` on the command line `push`, but I don't know how to do that with jgit.
What am I missing?
Thanks in advance,
Thomas.
GLS IT Services GmbH
Sitz: Neuenstein, Amtsgericht Bad Hersfeld HRB 388, Geschäftsführer: Thorsten Pruin