chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dgit: Break out $tarball_f_ext_re.
[dgit.git]
/
git-debpush
diff --git
a/git-debpush
b/git-debpush
index 402b1dd6a14d5b13df45fb488f36520acbcf6319..c3b067dca4eff7feb0edab1812c33694f3e29e5e 100755
(executable)
--- a/
git-debpush
+++ b/
git-debpush
@@
-230,6
+230,14
@@
case "$quilt_mode" in
*) badusage "invalid quilt mode: $quilt_mode" ;;
esac
*) badusage "invalid quilt mode: $quilt_mode" ;;
esac
+# **** Early sanity check ****
+
+if [ "$branch" = "HEAD" ] \
+ && ! git symbolic-ref --quiet HEAD >/dev/null; then
+ fail_check detached \
+ "HEAD is detached; you probably don't want to debpush it"
+fi
+
# **** Gather git information ****
remoteconfigs=()
# **** Gather git information ****
remoteconfigs=()