[GH-ISSUE #49] Archive Method: Add git repository archiving for github, bitbucket, and gitlab URLs #1542

Closed
opened 2026-03-01 17:51:34 +03:00 by kerem · 6 comments
Owner

Originally created by @pirate on GitHub (Nov 2, 2017).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/49

Great suggestion by @FiloSottile !

Originally created by @pirate on GitHub (Nov 2, 2017). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/49 Great suggestion by @FiloSottile !
kerem 2026-03-01 17:51:34 +03:00
Author
Owner

@pirate commented on GitHub (Jan 11, 2019):

This is done in 0df0987, let me know if you run into any troubles with it by commenting here or opening a new issue.

<!-- gh-comment-id:453470923 --> @pirate commented on GitHub (Jan 11, 2019): This is done in 0df0987, let me know if you run into any troubles with it by commenting here or opening a new issue.
Author
Owner

@FiloSottile commented on GitHub (Jan 13, 2019):

Maybe also pass --mirror to git clone.

<!-- gh-comment-id:453791753 --> @FiloSottile commented on GitHub (Jan 13, 2019): Maybe also pass --mirror to git clone.
Author
Owner

@pirate commented on GitHub (Jan 13, 2019):

Good idea. Just added it 321cded.

<!-- gh-comment-id:453793736 --> @pirate commented on GitHub (Jan 13, 2019): Good idea. Just added it 321cded.
Author
Owner

@0x326 commented on GitHub (Sep 12, 2020):

@pirate I noticed the --mirror option is no longer on master. Since there are perhaps two use cases (non-Git users just access the source code via HTTP; Git users might use the archive as a read-only Git remote), could there be a second archive extractor with that saves the Git history using the --mirror flag?

<!-- gh-comment-id:691493357 --> @0x326 commented on GitHub (Sep 12, 2020): @pirate I noticed the `--mirror` option is no longer on `master`. Since there are perhaps two use cases (non-Git users just access the source code via HTTP; Git users might use the archive as a read-only Git remote), could there be a second archive extractor with that saves the Git history using the `--mirror` flag?
Author
Owner

@pirate commented on GitHub (Sep 13, 2020):

That is indeed correct, I changed it because I was having difficulty using the --mirror output in a different extractor I was planning, but I can add an option back to re-enable it.

Would you be ok with a config flag to choose whether you want --mirror or not @0x326? (I'd like to avoid an extra extractor if possible)

<!-- gh-comment-id:691598296 --> @pirate commented on GitHub (Sep 13, 2020): That is indeed correct, I changed it because I was having difficulty using the `--mirror` output in a different extractor I was planning, but I can add an option back to re-enable it. Would you be ok with a config flag to choose whether you want `--mirror` or not @0x326? (I'd like to avoid an extra extractor if possible)
Author
Owner

@0x326 commented on GitHub (Sep 14, 2020):

@pirate I think a config flag would be a good idea

<!-- gh-comment-id:692235159 --> @0x326 commented on GitHub (Sep 14, 2020): @pirate I think a config flag would be a good idea
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1542
No description provided.