Commit Graph

15 Commits (6d5bbbe14bc8caa7a28c5d15c841f10e3aa53eef)

Author SHA1 Message Date
Slávek Banko 9d96d333d3
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>
(cherry picked from commit 065e9e0936)
7 years ago
Slávek Banko 3ee3a5a70b
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>
(cherry picked from commit 9bb83bf90c)
7 years ago
Slávek Banko 9be6e5e6f0 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>
(cherry picked from commit f50efa7e80)
7 years ago
Slávek Banko c58fea6319 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>
(cherry picked from commit a04af55867)
7 years ago
Slávek Banko d356f38213 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>
(cherry picked from commit 8fb500ce46)
7 years ago
Slávek Banko 8eb2ea0f54 switch_all_submodules_to_head_and_clean: Add support to clone from mirror
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 980d8ea3f8)
10 years ago
Slávek Banko 6d53459401 switch_all_submodules_to_head_and_clean: Use --rebase on git pull
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 916d3c9355)
10 years ago
Slávek Banko 7e23a1ee30 Added ignore-submodules flag, depending on the GIT version 13 years ago
Timothy Pearson c2cf6015ae Remove ignore-submodules flag from git commands in order to support older GIT versions 13 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
13 years ago
Timothy Pearson a2610d4e32 Update the GIT helper scripts 14 years ago
Timothy Pearson a8b9bef5de Fix switch_all_submodules_to_head_and_clean script 14 years ago
Timothy Pearson f9a97d74a5 Fix script again 14 years ago
Timothy Pearson 42325576f8 Fix last commit 14 years ago
Timothy Pearson 88dfc651d5 Add switch_all_submodules_to_head_and_clean script for developers 14 years ago