We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d95d9 commit 5559d58Copy full SHA for 5559d58
bin/git-tickets
@@ -33,14 +33,23 @@ process_branch() {
33
local temp_branch="temp_${branch_name}_$$"
34
if $UPDATE_BRANCHES; then
35
git checkout "$branch_name" &> /dev/null
36
+ if [ $? -ne 0 ]; then
37
+ echo "Failed to checkout branch $branch_name" >&2
38
+ exit 1
39
+ fi
40
git pull origin "$branch_name" &> /dev/null
41
echo "$branch_name"
42
else
43
git fetch origin "$branch_name":"$temp_branch" &> /dev/null
44
+ if ! git rev-parse --verify "$temp_branch" &> /dev/null; then
45
+ echo "Failed to fetch and create temp branch for $branch_name" >&2
46
47
48
echo "$temp_branch"
49
fi
50
}
51
52
+
53
# Process the first branch
54
BRANCH1=$(process_branch "$BRANCH1")
55
0 commit comments