lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 27 Jan 2007 16:59:12 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	linux-kernel@...r.kernel.org
Subject: git/cogito/stgit interaction problem

I often run into the following annoying problem when working on the 
2.6.16 and trivial trees:

I want to change or delete the x-th commit from the top under the 
following prerequisites:
- the last x commits don't contain merges
- the last x commits aren't pushed anywhere else

The only tool I know that helps me doing this conveniently is stgit.


Testcase:

$ cg-push  #  everything is pushed in this testcase
$ vi Makefile
$ cg-commit 
Committed as 94b13e5b0f46ba38ee6fd8f47b418d8a18eded52
$ stg init
$ stg uncommit -n 1  #  uncommit x-1 commits
Uncommitting 1 patches... done
$ stg pop -a
Popping patch "asdf"... done
No patches applied
$ #  in real use cases, that's the point where I'm using 
$ #  cg-admin-uncommit (plus perhaps later cg-commit) on the x-th commit
$ stg push -a
Fast-forwarded patch "asdf"
Now at patch "asdf"
$ stg commit
Committing 1 patches... done
$ cg-admin-uncommit -t
Rewinding 94b13e5b0f46ba38ee6fd8f47b418d8a18eded52 (HEAD) -> 08ceda6f8c5d68108308cf01fc5c3ec35775baa9
$ cg-push  # should work (and report that the tree is unchanged in this testcase)
bunk@...ter.kernel.org's password: 
error: src refspec master matches more than one.
fatal: unexpected EOF
$ cat .git/refs/bases/master 
94b13e5b0f46ba38ee6fd8f47b418d8a18eded52
$ rm -r .git/refs/bases  #  workaround found using Google
$ cg-push  # works fine
bunk@...ter.kernel.org's password: 
Everything up-to-date
$ 


Versions:
git 1.4.4.4
cogito 0.18.2
stgit 0.11


Any hints on whom to blame for this?
Or if these tools aren't expected to work together in this way, what is 
the official way for getting the same functionality?


TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists