mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Store changelog for upstream changes in the cache/hash/ (#3131)
* Store changelog for upstream changes in the cache/hash/ * Cleanup * Calculate urls * Use URL Don't merge since it doesn't work properly yet * Check if OLDHASHTARGET commit exists otherwise use oldest * Fix log updating * Improve log format, add better support for sunxi
This commit is contained in:
@@ -366,15 +366,15 @@ fetch_from_repo()
|
||||
# remote was updated, fetch and check out updates
|
||||
display_alert "Fetching updates"
|
||||
case $ref_type in
|
||||
branch) improved_git fetch --depth 1 origin "${ref_name}" ;;
|
||||
tag) improved_git fetch --depth 1 origin tags/"${ref_name}" ;;
|
||||
head) improved_git fetch --depth 1 origin HEAD ;;
|
||||
branch) improved_git fetch --depth 200 origin "${ref_name}" ;;
|
||||
tag) improved_git fetch --depth 200 origin tags/"${ref_name}" ;;
|
||||
head) improved_git fetch --depth 200 origin HEAD ;;
|
||||
esac
|
||||
|
||||
# commit type needs support for older git servers that doesn't support fetching id directly
|
||||
if [[ $ref_type == commit ]]; then
|
||||
|
||||
improved_git fetch --depth 1 origin "${ref_name}"
|
||||
improved_git fetch --depth 200 origin "${ref_name}"
|
||||
|
||||
# cover old type
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user