From owner-freebsd-git@freebsd.org Thu Dec 24 00:59:59 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAEBF4CFCF4 for ; Thu, 24 Dec 2020 00:59:59 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1WvL4Xc2z4hWW for ; Thu, 24 Dec 2020 00:59:58 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-pf1-x431.google.com with SMTP id t22so405415pfl.3 for ; Wed, 23 Dec 2020 16:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5vohMjtVMdXaAhuIaPbXfnnW/rYQdemktK1wqbVk2rQ=; b=Sv76IFiaZfG5V/UNAVofM32xCqv9DCzhc133lqYIhUwOIJrZJNkXldqA9A3tiZHClq sSMOIP9TfVkvT3LRvFw6D+wDiF0BSwoSfPkvlctxMPs0Ha/WBJ4sjq+GhHJ31+elofTZ SHLy84UAKqcaN19Xx2Cy1sz1ItRu2uQvPoGvOAlpGxpPlEhmwaB37SabAoYVSgtkBkLx U1YRLm/PtRQqXlvH2xSQrEho8omr3LF9P6KaqopKesPHMRWZSZS2t088dN1iAt3b+i8/ qlBbdErn8W00DQMQH4zN8Y+tMpVhe2hYO2BTbvd5v4GFCjP1NT9NoHSfNwFfIDrpOmth w9Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5vohMjtVMdXaAhuIaPbXfnnW/rYQdemktK1wqbVk2rQ=; b=Wekfl6D+P9ZRnFAM63F1KkPpoolracYsfxkDs3pq/zE8yAHupbWZbPvxWz8LGtTCgw WXAW0bqiSad49ad2h/NJNGEcwbJgYMtv0zZn0Z3FV3vN8RWGL8cj7hqlvwDKMtidDJRb ew/wt4/BEatyLKtJLr0MuqOvycVoGqvqtskfjukSShsbYFTDjB5KEWhN8NLfpmrMitYg aBHtT0sLrvPDWQqn2UYUnYNFvRHWlzcO6k3d7BWokbufw67fmuVAjt2aWabkQw+DIdoj Nuppxs3MrFNDq0fkMGJa/48kFsLKaKV+94OxJubmv6SNLVLjl7SZhk4o9GIX+r1y2zRm Dt8w== X-Gm-Message-State: AOAM532dW9EYRFqH2Zinx8eqe3baln/Fizni4okg2gMMckVoBFDGGekW e2e18R5p/9wjIlMLVYzrskLztA== X-Google-Smtp-Source: ABdhPJwBGqvqpYIMiR2S1pQ2xzNDffZhXlqaIujhMHMUzcgMeSWu3SCv0GduqXk+32savXrS3xmscg== X-Received: by 2002:a63:db57:: with SMTP id x23mr26322091pgi.131.1608771597055; Wed, 23 Dec 2020 16:59:57 -0800 (PST) Received: from [192.168.1.113] (172-125-77-130.lightspeed.sntcca.sbcglobal.net. [172.125.77.130]) by smtp.gmail.com with ESMTPSA id e10sm21321081pgu.42.2020.12.23.16.59.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2020 16:59:56 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Src repository is available on git.freebsd.org From: Bakul Shah In-Reply-To: Date: Wed, 23 Dec 2020 16:59:53 -0800 Cc: David Wolfskill , freebsd-git@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1C743D50-3240-48A0-A012-2D80E217EC64@iitbombay.org> References: <1527634C-4E31-4325-BB93-BDFF0C8ADB8C@iitbombay.org> <0C3B8F33-851B-4513-815A-09F33EF96DE8@iitbombay.org> To: =?utf-8?Q?Ulrich_Sp=C3=B6rlein?= X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4D1WvL4Xc2z4hWW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20150623.gappssmtp.com header.s=20150623 header.b=Sv76IFia; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=bakul@iitbombay.org X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[iitbombay-org.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::431:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[bakul]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[iitbombay.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::431:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::431:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-git] X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2020 00:59:59 -0000 On Dec 23, 2020, at 2:34 AM, Ulrich Sp=C3=B6rlein = wrote: >=20 > On Tue, 2020-12-22 at 14:18:10 -0800, Bakul Shah wrote: >> On Dec 22, 2020, at 2:03 PM, David Wolfskill = wrote: >>>=20 >>> On Tue, Dec 22, 2020 at 01:51:39PM -0800, Bakul Shah wrote: >>>> I have been tracking cgit-beta.freebsd.org since September. >>>> What is the process for switching over to git.freebsd.org? >>>> I thought there were instructions for that but I can't find them = any more! >>>> Thanks. >>>> .... >>>=20 >>> I aqssumed(!) that the hashes would be different, so I moved aside = the >>> repo I had from cgit-beta and cloned a new one (from = git.freebsd/org), >>> then removed the old one once I was satisfied that the new one was = OK. >>=20 >> Forgot to add that I wanted to switch over *without* blowing away = 3.2GB >> of local git bits. Hashes shouldn't change unless something major got >> redone. Comparing hashes from my local repo with = https://cgit.freebsd.org/src/commit/ >> I see they are the same. >=20 > 3.2GB sounds wrong, it looks like you have the new hashes and the old = hashes and no GC run in between. This is expected and would fix itself = over time, you might want to compress things down to 1.6GB however, = using: git gc --prune=3Dnow In spite of this the repo remains at 3.0G. Though now there are a bunch = lines like=20 warning: reflog of 'refs/notes/commits' references pruned commits warning: reflog of 'refs/remotes/origin/main' references pruned commits warning: reflog of 'refs/remotes/origin/releng/11.0' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/7.1' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/5.5' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/4.8' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/8.4' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/9.3' references pruned = commits warning: reflog of 'refs/remotes/origin/releng/8.3' references pruned = commits in gc.log. I fixed that with git reflog expire --all --stale-fix > BEWARE: that you don't have any loose refs that you still might need = later on. If all your changes are in regular branches and you didn't go = wild with rebase -i or anything, then this should be safe. >=20 > To not re-download everything, use --reference to point to an existing = clone, that is: >=20 > git clone --reference /path/to/old/clone = https://git.FreeBSD.org/src.git /path/to/new/clone >=20 > You could also: > git init > git add remote .... > cp the objects/* files over to the new repo > git fetch I just did git remote set-url origin -- this really only rewrites the = url=3D line in config!