Changeset 7ce6de2


Ignore:
Timestamp:
09/22/2013 07:14:33 AM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
ce262a7
Parents:
b86876a
Message:

Fix updating a git working copy when the head is detached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_book_parser

    rb86876a r7ce6de2  
    3232           cd ${PROGNAME}-$LFSVRS
    3333           echo "Checking out $LFSVRS at $PWD in $TREE"
    34            git checkout ${TREE} >>$LOGDIR/$LOG 2>&1
     34           git checkout -b ${TREE} ${TREE} >>$LOGDIR/$LOG 2>&1
    3535        fi
    3636    else
    3737      cd ${PROGNAME}-$LFSVRS
    3838      case $PROGNAME in
    39         clfs*)  git pull >>$LOGDIR/$LOG 2>&1 ;;
     39        clfs*)  git checkout master >>$LOGDIR/$LOG 2>&1
     40                git pull >>$LOGDIR/$LOG 2>&1
     41                if [ ! $TREE == "development" ]; then
     42                   git checkout ${TREE} >>$LOGDIR/$LOG 2>&1
     43                fi
     44        ;;
    4045        lfs | hlfs) svn up >>$LOGDIR/$LOG 2>&1 ;;
    4146        *) ;;
Note: See TracChangeset for help on using the changeset viewer.