infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignasi Barrera (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (INFRA-16889) Github repo not in sync with asf repo
Date Mon, 13 Aug 2018 12:25:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-16889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578206#comment-16578206
] 

Ignasi Barrera edited comment on INFRA-16889 at 8/13/18 12:24 PM:
------------------------------------------------------------------

Thanks for digging into this, [~oflebbe].
I'm not a Git expert, but would this work to remove all unreferenced stuff from the repo,
[~humbedooh]?

git clone --bare https://git-wip-us.apache.org/repos/asf/jclouds.git
cd jclouds
git push --mirror origin

The idea is to clone the bare repo to fetch all existing tags and branches (but not all refs)
and push them back with the `--mirror` to force the deletion of everything that is not there.
We only care about the commits that are referenced from a branch or tag, so it should be safe
and IIUC it should not affect existing clones of the repo.


was (Author: nacx):
Thanks for digging into this, [~oflebbe].
I'm not a Git expert, but would this work to remove all unreferenced stuff from the repo,
[~humbedooh]?

{code}
git clone --bare https://git-wip-us.apache.org/repos/asf/jclouds.git
cd jclouds
git push --mirror origin
{code}

The idea is to clone the bare repo to fetch all existing tags and branches (but not all refs)
and push them back with the {{--mirror}} to force the deletion of everything that is not there.
We only care about the commits that are referenced from a branch or tag, so it should be safe
and IIUC it should not affect existing clones of the repo.

> Github repo not in sync with asf repo
> -------------------------------------
>
>                 Key: INFRA-16889
>                 URL: https://issues.apache.org/jira/browse/INFRA-16889
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Git, Github
>            Reporter: Olaf Flebbe
>            Priority: Major
>
> https://github.com/apache/jclouds is not in sync with 
> https://git-wip-us.apache.org/repos/asf
> The sync may have stopped in november last year.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message