Commit Graph

31 Commits (2c8aa8553ef23d92c3360a4d4c6e760f4e29495c)
 

Author SHA1 Message Date
Slávek Banko 2c8aa8553e
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>
(cherry picked from commit 9545e31f18)
4 years ago
Slávek Banko a7d99ab36c
create_tarball: Force file permissions in the tarball.
It addresses independence from UMASK to ensure a reproducible build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 807378eeb2)
4 years ago
Slávek Banko f72bbe3b31
create_tarball: Convert to UTC the date of the last commit,
which is written to '.tdescminfo'.

Because formatting a date using 'git log' does not return results in UTC,
the unix timestamp is used for git log, and conversion to UTC is done
using 'date'.

It addresses time zone independence to ensure a reproducible build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 517a783020)
4 years ago
Slávek Banko b0b74cedc4
create_tarball: Adapted to new 'core' folder for core modules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9db84075a0)
4 years ago
Slávek Banko 041fa76284
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>
(cherry picked from commit 5b81e0aa93)
4 years ago
Slávek Banko b43f26a7cc
create_tarball: Modify the tarball creation so that it is reproducible.
Note: If gzip or pigz is used, it is necessary to use the "-n" option.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 428c2d88b4)
5 years ago
Slávek Banko abf4cb3fbc
create_tarball: Create one .tdescminfo file containing all the data,
including the git repository date, instead of individual .tdescm* files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5c39eb0954)
5 years ago
Slávek Banko 69b26c84a1
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 6bd7ced274
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 d18eea7c87 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 7bfde00c31 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 9e77d9c754 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 35f2e59341 Update update_all_submodules
+ create lock specific by branch
+ 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 b0d74087e5)
7 years ago
Slávek Banko ca7a65b56e Update create_tarball and create_all_tarballs
+ default TARGET is now detected from the TDE core header
+ added check if TARGET is valid for the branch

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a4ee973238)
7 years ago
Slávek Banko 8f6eb24541 Revamp update_all_submodules
+ submodules file is no longer needed
+ list of submodules is loaded from .gitmodules
+ order of the submodules is determined by .gitmodules
+ nested submodules are processed recursively by .gitmodules
+ all submodules, including nested, are updated in one cycle

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9f54f58809)
9 years ago
Slávek Banko 7742941f74 Allow to create tarballs on detached branch
For example, for a particular git tag

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2c76932134)
9 years ago
Slávek Banko 34be6b5ed4 Update version number for new target 3.5.13.3
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Slávek Banko dd6b89a14a 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)
9 years ago
Slávek Banko 24b5078acd 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)
9 years ago
Slávek Banko 8cf95ae5ad create_tarball: Split initial character in tag while sorting by version
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0a16bdf260)
9 years ago
Slávek Banko 337d014ddd create_tarball: Sort tags as version numbers instead of as text
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 45dd8325b7)
9 years ago
Slávek Banko bf39f95043 create_tarball: Add automatic creation of SCM metadata
(cherry picked from commit c5010d9665)
9 years ago
Slávek Banko a2bc0662a5 create_tarball: Add support for multithreaded compressors
(cherry picked from commit a48d32b281)
9 years ago
Slávek Banko 47fb38fad7 Added ignore-submodules flag, depending on the GIT version
(cherry picked from commit 7e23a1ee30)
12 years ago
Slávek Banko d8d6594611 create_tarball: Fix wrong path transformation in symlinks
(cherry picked from commit f7f29b7ce2)
12 years ago
Slávek Banko 176dee06cd create_tarball: Add other renaming of rebranded packages
Add option to use rebranded names
12 years ago
Slávek Banko 2da96d38f2 create_tarball: Add option to select compression method
(cherry picked from commit 6a19cd9bb6)
12 years ago
Slávek Banko e2250001be Added scripts for creating tarballs
(cherry picked from commit b430a3e49e)
12 years ago
Timothy Pearson b0a915240f Remove ignore-submodules flag from git commands in order to support older GIT versions
(cherry picked from commit 3f91377dc9f4caf3269679045215de90c8491b77)
12 years ago
Slávek Banko 4816dfe852 Scripts: Fix branch detection with git older than 1.7.10 13 years ago
Slávek Banko bb470b8851 Added submodules for v3.5.13-sru branch
Added flat listing of submodules
Updated GIT readme file
Added scripts
13 years ago