[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] Stop work if no change to deploy exists



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • config/deploy/deploy.functions
    1 1
     # -*- mode:sh -*-
    
    2 2
     
    
    3 3
     function fetch_updates() {
    
    4
    -    GIT_DIR=${masterdir}/.git git fetch origin
    
    4
    +    cd ${masterdir}/
    
    5
    +    local beforefetch=$(git rev-parse origin/deploy)
    
    6
    +    git fetch origin
    
    7
    +    local afterfetch=$(git rev-parse origin/deploy)
    
    8
    +    if [[ ${beforefetch} == ${afterfetch} ]]; then
    
    9
    +        exit 0
    
    10
    +    fi
    
    5 11
     }
    
    6 12
     
    
    7 13
     function find_commitids() {
    


  • Reply to: