mainSavannah Administration - Support: sr #109713, Imported stuff from other projects...

 
 

sr #109713: Imported stuff from other projects then removed from git history, need to force push

Submitter:  Alexandros Theodotou <alextee>
Submitted:  Tue 25 Jun 2019 12:06:05 AM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  ineiev
Operating System:  GNU/Linux Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 25 Jun 2019 02:05:16 PM UTC, comment #4: 

ah that worked, didn't know I could delete branches.

the issue is resolved now, thanks!

Alexandros Theodotou <alextee>
Tue 25 Jun 2019 01:24:02 PM UTC, comment #3: 


> $ git push --force


Oh, sorry, I do it this way:

$ git push origin :bugfixes
$ git push origin new_bugfixes:bugfixes

That is, remove it first, then push the fresh branch.

Ineiev <ineiev>
Site Administrator
Tue 25 Jun 2019 07:48:22 AM UTC, comment #2: 

that would be fine as long as the tags are there. actually `git push --tags` worked so I guess it's fine now.

are you sure that it's only master? it tells me "denying non-fast-forward" when i force push on another branch

```
$ git push --force savannah                                                                                                                                                              
Enumerating objects: 8460, done.
Counting objects: 100% (8460/8460), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3510/3510), done.
Writing objects: 100% (8084/8084), 9.14 MiB | 1.11 MiB/s, done.
Total 8084 (delta 5531), reused 6074 (delta 3858)
remote: error: denying non-fast-forward refs/heads/bugfixes (you should pull first)
To git.savannah.nongnu.org:/srv/git/zrythm.git
 ! [remote rejected]   bugfixes -> bugfixes (non-fast-forward)
error: failed to push some refs to 'alextee@git.savannah.nongnu.org:/srv/git/zrythm.git'
```

but as long as the tags are there i don't mind. i'm only concerned with not losing my work if my self-hosted stuff goes down. feel free to close this if you want.

Alexandros Theodotou <alextee>
Tue 25 Jun 2019 05:43:29 AM UTC, comment #1: 

You must be able to git-push --force any branches but master.  Do you need more?

Ineiev <ineiev>
Site Administrator
Tue 25 Jun 2019 12:06:05 AM UTC, original submission:  

I imported another project in my project for a while, then I decided to remove it as it was a bad idea, but after removing it it was still taking a lot of space in the git history. So I used a tool to remove it from the git history -- with good results, git clone now is many megabytes smaller.

I understand that Savannah has a policy of not removing source code, but this is not source code from my project, this is source code from another free software project that I copied into my git tree.

More specifically, I had copied this repository https://github.com/DISTRHO/DISTRHO-Ports which has libre plugins that can be used in my software. My idea was to bundle them with my software.

I am asking for permission to repush my branches and tags (old tags have been deleted since they pointed to invalid commits). I have made many new tags that I am ready to push. I don't think losing the older tags is a big issue since the software was in early alpha and is now in alpha, so it's to early for someone to benefit from them. Also the source code of my project has not been modified as far as I could see from running the git history cleaner tool.

If more info is needed please let me know. The project is http://git.savannah.nongnu.org/cgit/zrythm.git

Not urgent as I'm using Savannah as a mirror.

Thanks,
Alex

Alexandros Theodotou <alextee>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ineiev (Posted a comment)
  • -email is unavailable- added by alextee (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-25 ineiev StatusIn Progress Done
        Open/ClosedOpen Closed
    2019-06-25 ineiev StatusNone In Progress
        Assigned toNone ineiev

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code