summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdgit12
1 files changed, 5 insertions, 7 deletions
diff --git a/dgit b/dgit
index a896847..cc0edd0 100755
--- a/dgit
+++ b/dgit
@@ -977,9 +977,8 @@ sub notpushing () {
parseopts_late_defaults();
}
-sub determine_whether_split_brain () {
- my ($format,) = get_source_format();
-
+sub determine_whether_split_brain ($) {
+ my ($format) = @_;
{
local $access_forpush;
default_from_access_cfg(\$splitview_mode, 'split-view', 'auto',
@@ -997,8 +996,6 @@ sub determine_whether_split_brain () {
$do_split_brain = 1;
}
$do_split_brain //= 0;
-
- return ($format);
}
sub supplementary_message ($) {
@@ -4887,7 +4884,7 @@ sub cmd_fetch {
sub cmd_pull {
parseopts();
fetchpullargs();
- determine_whether_split_brain();
+ determine_whether_split_brain get_source_format();
if (do_split_brain()) {
my ($format, $fopts) = get_source_format();
madformat($format) and fail f_ <<END, $quilt_mode
@@ -6576,7 +6573,8 @@ sub build_or_push_prep_early () {
}
sub build_or_push_prep_modes () {
- my ($format,) = determine_whether_split_brain();
+ my ($format) = get_source_format();
+ determine_whether_split_brain($format);
fail __ "dgit: --include-dirty is not supported with split view".
" (including with view-splitting quilt modes)"