summaryrefslogtreecommitdiff
path: root/bin/pin
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pin')
-rwxr-xr-xbin/pin5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pin b/bin/pin
index 10a900e..42527ab 100755
--- a/bin/pin
+++ b/bin/pin
@@ -1,10 +1,10 @@
#!/bin/bash
(
- while read line; do
+ while read -r line; do
commit_master=$(echo "$line" | cut -f1)
- if (cd ../..; git merge-base --is-ancestor $commit_master HEAD 2>/dev/null); then
+ if (cd ../..; git merge-base --is-ancestor "$commit_master" HEAD 2>/dev/null); then
echo "$line"
exit
fi
@@ -16,4 +16,3 @@
echo -e "HEAD\tHEAD\tHEAD"
) < conf/pin.tsv
-