fix DFS_DEV

This commit is contained in:
xiongdian.me 2022-11-04 16:40:04 +08:00
parent bbe983999e
commit a1c74f2b38

View File

@ -25,7 +25,7 @@ if [[ "$(git rev-parse HEAD)" == "$dfs_commit" ]]; then
post_log "INFO" "$THIS_FILE" "nothing to do"
else
fmt_info "checking out to commit $dfs_commit ..."
if [[ -z "DFS_DEV" ]]; then
if [[ -z "$DFS_DEV" ]]; then
git -c advice.detachedHead=false checkout $dfs_commit
else
fmt_warning "won't really checkout in dev mode"