You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/07/07 17:24:05 UTC

[jira] [Updated] (INFRA-9947) Remove commits on karaf.git

     [ https://issues.apache.org/jira/browse/INFRA-9947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated INFRA-9947:
----------------------------------------
    Description: 
Hi,

an user submitted a Pull Request with a bad e-mail address. He asked to change it. I fixed the commits with the correct e-mail address, but now, I have to cleanup the "old" commits with the bad e-mail address.

Unfortunately, according to the ASF Git policy, I can push -f on master.

On karaf.git, can you perform the following command:

{code}
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "9e3e97d4d60b51f2e7cfc3f9b1c90931fe5766cb" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "34788625b2ae92441b973ffa94281e3261b1bb9f" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "edf72c7e7cb8deded966f2fa7f0a285eb5848f56" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "76554a196a2997d0db439bdb07d532e104d2152c" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git push -f
{code}

Thanks !

Regards
JB

  was:
Hi,

an user submitted a Pull Request with a bad e-mail address. He asked to change it. I fixed the commits with the correct e-mail address, but now, I have to cleanup the "old" commits with the bad e-mail address.

Unfortunately, according to the ASF Git policy, I can push -f on master.

On karaf.git, can you perform the following command:

{code}
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "9e3e97d4d60b51f2e7cfc3f9b1c90931fe5766cb" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "34788625b2ae92441b973ffa94281e3261b1bb9f" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "edf72c7e7cb8deded966f2fa7f0a285eb5848f56" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "76554a196a2997d0db439bdb07d532e104d2152c" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
{code}

Thanks !

Regards
JB


> Remove commits on karaf.git
> ---------------------------
>
>                 Key: INFRA-9947
>                 URL: https://issues.apache.org/jira/browse/INFRA-9947
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Git
>            Reporter: Jean-Baptiste Onofré
>
> Hi,
> an user submitted a Pull Request with a bad e-mail address. He asked to change it. I fixed the commits with the correct e-mail address, but now, I have to cleanup the "old" commits with the bad e-mail address.
> Unfortunately, according to the ASF Git policy, I can push -f on master.
> On karaf.git, can you perform the following command:
> {code}
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "9e3e97d4d60b51f2e7cfc3f9b1c90931fe5766cb" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "34788625b2ae92441b973ffa94281e3261b1bb9f" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "edf72c7e7cb8deded966f2fa7f0a285eb5848f56" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git filter-branch -f --commit-filter ' if [ "$GIT_COMMIT" = "76554a196a2997d0db439bdb07d532e104d2152c" ]; then skip_commit "$@"; else git commit-tree "$@"; fi' HEAD
> git push -f
> {code}
> Thanks !
> Regards
> JB



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)