From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WAEXf-0003ky-8N for ptxdist@pengutronix.de; Mon, 03 Feb 2014 09:06:07 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1WAEXf-0000Yq-6i for ptxdist@pengutronix.de; Mon, 03 Feb 2014 09:06:07 +0100 Date: Mon, 3 Feb 2014 09:06:07 +0100 From: Michael Olbrich Message-ID: <20140203080607.GD28131@pengutronix.de> References: <1391273907-22030-1-git-send-email-jon@ringle.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1391273907-22030-1-git-send-email-jon@ringle.org> Subject: Re: [ptxdist] [PATCH] git: use git remote rm for backward compatibility Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sat, Feb 01, 2014 at 11:58:27AM -0500, jon@ringle.org wrote: > From: Jon Ringle > > In scripts/lib/ptxd_make_get.sh there is a git call for: > git --git-dir="${mirror}" remote remove origin > > This fails on git 1.7.10.4: > > git: fetching 'https://git.gridpoint.com/git/gpec/linux-ec1k.git into '/home/jringle/ptxdist-src/git.gridpoint.com.git.gpec.linux-ec1k.git'... > error: Unknown subcommand: remove > usage: git remote [-v | --verbose] > or: git remote add [-t ] [-m ] [-f] [--mirror=] > or: git remote rename > or: git remote rm > or: git remote set-head (-a | -d | ) > or: git remote [-v | --verbose] show [-n] > or: git remote prune [-n | --dry-run] > or: git remote [-v | --verbose] update [-p | --prune] [( | )...] > or: git remote set-branches [--add] ... > or: git remote set-url [] > or: git remote set-url --add > or: git remote set-url --delete > > -v, --verbose be verbose; must be placed before a subcommand > > fatal: remote origin already exists. > > On git 1.7.10.4, the command is 'git remote rm', not 'git remote remove' > > According to the git.git commit [1] that changed this, > rm is still support, just not advertised in help. > > [1] http://code.google.com/p/git-core/source/detail?spec=svne17dba8fe15028425acd6a4ebebf1b8e9377d3c6&r=e17dba8fe15028425acd6a4ebebf1b8e9377d3c6 > > Signed-off-by: Jon Ringle Thanks, applied. Michael > --- > scripts/lib/ptxd_make_get.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh > index a33aca3..9f388dd 100644 > --- a/scripts/lib/ptxd_make_get.sh > +++ b/scripts/lib/ptxd_make_get.sh > @@ -122,7 +122,7 @@ ptxd_make_get_git() { > if [ ! -d "${mirror}" ]; then > git init --bare --shared "${mirror}" > else > - git --git-dir="${mirror}" remote remove origin > + git --git-dir="${mirror}" remote rm origin > fi > # overwrite everything so the git repository is in a defined state > git --git-dir="${mirror}" config transfer.fsckObjects true && > -- > 1.7.10.4 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de