From nobody Sat Jun 18 12:03:48 2022 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C1F57841C30 for ; Sat, 18 Jun 2022 12:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LQF1c2rgqz3Cwl for ; Sat, 18 Jun 2022 12:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 37CB814489 for ; Sat, 18 Jun 2022 12:03:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25IC3mul089858 for ; Sat, 18 Jun 2022 12:03:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25IC3meG089857 for doc@FreeBSD.org; Sat, 18 Jun 2022 12:03:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 264751] Committer's Guide: `git config push.default freebsd` causes error Date: Sat, 18 Jun 2022 12:03:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Books & Articles X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655553828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TIDjQco9zyD//CaiPYFzBIyN5ReZMSHN0U61RjpNgb0=; b=kLKzwEg6XcTFa6WotIPPJYW5kfyagb6WPUQZklJ02hAAoiFg9x7PyxPbkWfZBMVcZ7n0M8 fEVL9ugn67rwAXTnPIrlgD1huvKE6DpxpR+HQ3Yf4bVhxUeFPTj9DIEtklkcPFYHxDlHpT H2DSKH7gf4CvlS77Ilk8KgdBe69dtZqw0/+EpOxNR/WCtdKs6rieqLZkpFPWLrpWxyauDm MHErkfSRLeVddDndCZ02Nt39TK8QfzwaC+YCBIxj0bwR+GXsr4g81s14J4nJLMqy1GkaNn FZsaSW5q03T74a3uhBusP96ZtImb5AeqNthBmFrmV3Zh/gHpCP8k6z0X95BErA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655553828; a=rsa-sha256; cv=none; b=hqHs77pvt8eWFXz6Ug1N2r6RmFQwlwVebj6D4R3NJeipBN0+lHyEkXpZLifMa/CzYIKz3+ a3dqu/m5VOyGBsodFUQ699yNnAwV/0USi/YTCz1onLnTg+VzdrsSP3ouO4UCcKfG8HcTeR jKZ1K6UcC27fV9rg4lhQJJjdFIQKidRr7ytEDtHwkVM3ftXRN3erIM7zJO4kXBUAGtTS+l lh+nwP19q4CpDtF8XJMDen98R38kc7+71zW6BihblcfttDjI2X9NjNaeO2BXhaykaJ+F+X qJth/HKj1E7jTS7jfb4/MQ3XA2Fu0fDEHPmSacZwsEgAI/mDC85LAFAFC/NVPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264751 Bug ID: 264751 Summary: Committer's Guide: `git config push.default freebsd` causes error Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Books & Articles Assignee: doc@FreeBSD.org Reporter: yasu@freebsd.org In the section 5.2.2.2 of Committer's Guide, There is following description. ---------------------------------------------------------------------- For pushing, either specify the full refspec: git push freebsd HEAD:refs/internal/admin Or set push.default to freebsd which will make git push to push the current branch back to its upstream by default, which is more suitable for our workflow: git config push.default freebsd ---------------------------------------------------------------------- However, in the git-config(1) man page of Git 2.36.1 `push.default` is explained as following. ---------------------------------------------------------------------- push.default Defines the action git push should take if no refspec is given (whether from the command-line, config, or elsewhere). Different values are well-suited for specific workflows; for instance, in a purely central workflow (i.e. the fetch source is equal to the p= ush destination), upstream is probably what you want. Possible values are: =E2=80=A2 nothing - do not push anything (error out) unless a = refspec is given. This is primarily meant for people who want to avoid mistakes by always being explicit. =E2=80=A2 current - push the current branch to update a branch= with the same name on the receiving end. Works in both central and non-central workflows. =E2=80=A2 upstream - push the current branch back to the branc= h whose changes are usually integrated into the current branch (which is called @{upstream}). This mode only makes sense if you are pushing to the same repository you would normally pull from (i.e. central workflow). =E2=80=A2 tracking - This is a deprecated synonym for upstream. =E2=80=A2 simple - pushes the current branch with the same nam= e on the remote. If you are working on a centralized workflow (pushing to the same repository you pull from, which is typically origin), t= hen you need to configure an upstream branch with the same name. This mode is the default since Git 2.0, and is the safest option suited for beginners. option suited for beginners. =E2=80=A2 matching - push all branches having the same name on= both ends. This makes the repository you are pushing to remember the set of branches that will be pushed out (e.g. if you always push maint and master there and no other branches, the repository you push to will have these two branches, and your local mai= nt and master will be pushed there). To use this mode effectively, you have to make sure all the branches you would push out are ready to be pushed out before running git push, as the whole point of this mode is to allow you to push all of the branches in one go. If you usually finish work on only one branch and push out the result, while other branches are unfinished, this mode is not for you. Also this mode is not suitable for pushing into a shared central repository, as other people may add new branches there, or update the tip of existing branches outside your control. This used to be the default, but not since Git 2.0 (simple is the new default). ---------------------------------------------------------------------- It means valid values are 'nothing', 'current', 'upstream', 'tracking', 'simple' and 'matching'. So setting it to 'freebsd' results in error. ---------------------------------------------------------------------- yasu@rolling-vm-freebsd2[1030]% git remote -v freebsd https://git.freebsd.org/ports.git (fetch) freebsd git@gitrepo.freebsd.org:ports.git (push) yasu@rolling-vm-freebsd2[1031]% git config push.default freebsd yasu@rolling-vm-freebsd2[1032]% git push error: malformed value for push.default: freebsd error: must be one of nothing, matching, simple, upstream or current fatal: bad config variable 'push.default' in file '.git/config' at line 30 yasu@rolling-vm-freebsd2[1033]% ---------------------------------------------------------------------- --=20 You are receiving this mail because: You are the assignee for the bug.=