Commit Graph

17 Commits (eecedb7d6141478bebff53ad3e5f0f822e34595e)

Author SHA1 Message Date
Slávek Banko 9545e31f18
Update switch_all_submodules_to_head_and_clean
+ Ensure checkout for new upstream branch in worktree mode of tree.
+ To test the availability of repository use curl if it is present.
+ Sign commits using GPG during rebase if the signing key is set.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko 5b81e0aa93
switch_all_submodules_to_head_and_clean: Clean up abandoned worktrees
before adding a new worktree.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko 065e9e0936
Update switch_all_submodules_to_head_and_clean
+ better detection of whether a branch is remote tracked
+ instead of git pull --rebase is used git fetch and git rebase
+ added verification whether the remote server is available
+ do a git checkout only if the required branch is not active
+ added support for creating a 'tde' submodules tree using git worktree

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko 9bb83bf90c
Update switch_all_submodules_to_head_and_clean
+ cleaning of temporary branches combined into one operation along with pull
+ this prevents additional communication with the remote server
+ all remote servers will be fetched and also pruned

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko f50efa7e80 Update switch_all_submodules_to_head_and_clean:
+ add support for cloning repositories via ssh

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko a04af55867 Update switch_all_submodules_to_head_and_clean
+ add cleaning of potential temporary branches from remote server

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko 8fb500ce46 Revamp switch_all_submodules_to_head_and_clean
+ script revised according to update_all_submodules
+ files .gitmodules are processed instead of call git submodule foreach
+ modules are initialized during processing instead of at the beginning
+ initialize submodules only if they have not yet been initialized
+ use --no-recurse-submodules at git pull for better overview of the update progress

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko 980d8ea3f8 switch_all_submodules_to_head_and_clean: Add support to clone from mirror
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko 916d3c9355 switch_all_submodules_to_head_and_clean: Use --rebase on git pull
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko 7e23a1ee30 Added ignore-submodules flag, depending on the GIT version 12 years ago
Timothy Pearson c2cf6015ae Remove ignore-submodules flag from git commands in order to support older GIT versions 12 years ago
Slávek Banko 95dd4739aa Updating git scripts
+ add support for gitfile (submodules with git >= 1.7.8)
+ add gituser detection from git configuration
+ add support for branches
+ various optimizations
12 years ago
Timothy Pearson a2610d4e32 Update the GIT helper scripts 13 years ago
Timothy Pearson a8b9bef5de Fix switch_all_submodules_to_head_and_clean script 13 years ago
Timothy Pearson f9a97d74a5 Fix script again 13 years ago
Timothy Pearson 42325576f8 Fix last commit 13 years ago
Timothy Pearson 88dfc651d5 Add switch_all_submodules_to_head_and_clean script for developers 13 years ago