Welcome to mirror list, hosted at ThFree Co, Russian Federation.

clean-xhprof.sh « composer « misc - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d20c17dd482fb6d215236d59bfbbb77b6b52c30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# if xhprof exists but points to a non-master branch, checkout master so composer won't fail

if [ -d "vendor/facebook/xhprof/extension" ]; then
    cd vendor/facebook/xhprof/extension

    GIT_BRANCH=$(git symbolic-ref HEAD 2>/dev/null)

    git reset --hard &> /dev/null
    git checkout master &> /dev/null
fi