This fixes long-snanding bug in which "bak diff" (and other commands)
would return diff of whole host as opposed to working directory
}
} else {
# commands without path will show host-wide status/changes
}
} else {
# commands without path will show host-wide status/changes
- my $backup_path = $rel_path ? $backup_path : "$hostname/";
+ my $backup_path = $path ? "$hostname/$path" : "$hostname/";
# hostname must end with / to prevent error from git:
# ambiguous argument 'arh-hw': both revision and filename
# to support branches named as hosts
# hostname must end with / to prevent error from git:
# ambiguous argument 'arh-hw': both revision and filename
# to support branches named as hosts