[kernel-team] 04/47: Reset the git branch more efficiently

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Dec 21 00:30:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kernel-team.

commit 1f6d01ad5d9a17f17b773a5f0010fe891d4fd246
Author: Ben Hutchings <benh at debian.org>
Date:   Wed Jan 5 02:33:34 2011 +0000

    Reset the git branch more efficiently
    
    svn path=/people/benh/; revision=16773
---
 scripts/benh/debian-kernel-patches-to-git | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/benh/debian-kernel-patches-to-git b/scripts/benh/debian-kernel-patches-to-git
index 85edce9..9ad4b0e 100755
--- a/scripts/benh/debian-kernel-patches-to-git
+++ b/scripts/benh/debian-kernel-patches-to-git
@@ -184,5 +184,4 @@ for version in $(dpkg-parsechangelog -l"$debdir"/debian/changelog --since "$upst
 
 done
 
-git checkout "$branch"
-git reset --hard "HEAD@{1}"
+git branch -f "$branch"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git



More information about the Kernel-svn-changes mailing list