Support passing --force to repoman.
This commit is contained in:
parent
0786203159
commit
349d6ae12f
@ -113,6 +113,7 @@ Options:
|
||||
|
||||
-c, --changelog backwards compat (ignored),
|
||||
-C, --nocolor disable colorful output,
|
||||
-f, --force force repoman to proceed with the commit,
|
||||
-t, --trivial trivial changes (do not add a ChangeLog entry),
|
||||
-v, --verbose enable verbose output.
|
||||
_EOH_
|
||||
@ -120,7 +121,7 @@ _EOH_
|
||||
|
||||
# Guess what!
|
||||
main() {
|
||||
local commitmsg monochrome trivial
|
||||
local commitmsg force monochrome trivial
|
||||
unset SC_VERBOSE
|
||||
|
||||
while [ ${#} -gt 0 ]; do
|
||||
@ -140,6 +141,9 @@ main() {
|
||||
-C|--nocolor)
|
||||
monochrome=1
|
||||
;;
|
||||
-f|--force)
|
||||
force=1
|
||||
;;
|
||||
-t|--trivial)
|
||||
trivial=1
|
||||
;;
|
||||
@ -254,7 +258,7 @@ main() {
|
||||
fi
|
||||
|
||||
sayv "Now, let's let repoman do its job..."
|
||||
exec repoman commit ${old_repoman--a} -m "${SC_CP}: ${commitmsg}"
|
||||
exec repoman commit ${old_repoman--a} ${force+-f} -m "${SC_CP}: ${commitmsg}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user