Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: keeping repositories up to date #5

Closed
jrasanen opened this issue Jul 5, 2022 · 5 comments
Closed

Feature request: keeping repositories up to date #5

jrasanen opened this issue Jul 5, 2022 · 5 comments

Comments

@jrasanen
Copy link

jrasanen commented Jul 5, 2022

Hi,

first of all, thank you for this tool. I've been doing the same manually until I found this from Lobsters.

Currently, I have hundreds of git repositories structured precisely like this and I have a crude shell script to keep them up to date.

Do you think it would be out of scope for git-grab to also keep the git repository remotes found at $GRAB_HOME updated?

Thanks!

@wezm
Copy link
Owner

wezm commented Jul 5, 2022

I think it probably is out of scope for git-grab. However, what did you imagine git-grab would do that your current script doesn't? Alternatively I've seen a number of tools and scripts over the years that seem to tackle this problem. Perhaps check out https://myrepos.branchable.com/ if that doesn't work for you there's a bit list of related tools at the bottom of the page that might be worth checking out too.

@wezm
Copy link
Owner

wezm commented Jul 5, 2022

first of all, thank you for this tool. I've been doing the same manually until I found this from Lobsters.

Oh I'm also curious where you saw it on Lobsters?

@jrasanen
Copy link
Author

jrasanen commented Jul 5, 2022

Oh I'm also curious where you saw it on Lobsters?

Actually, I remembered wrong, I found this from a private irc-channel, my mistake.

I think it probably is out of scope for git-grab

After thinking this a bit more, what happens if the directory already exists? Would it make sense to define the fallback behaviour to do an update operation, perhaps behind a command-line flag?

My use case then would be iterating a text file of repository URLs, passing them to git grab periodically using a crontab.

@wezm
Copy link
Owner

wezm commented Jul 5, 2022

After thinking this a bit more, what happens if the directory already exists? Would it make sense to define the fallback behaviour to do an update operation, perhaps behind a command-line flag?

My use case then would be iterating a text file of repository URLs, passing them to git grab periodically using a crontab.

Currently it will abort the clone because the directory already exists. Hmm I think one of the other existing tools would be better for this. E.g. https://github.com/gerdreiss/gitallup

I think I'll consider this out of scope for now.

@jrasanen
Copy link
Author

jrasanen commented Jul 5, 2022

I think I'll consider this out of scope for now.

Completely understand, thanks for replying! 👌🏽

@jrasanen jrasanen closed this as completed Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants