Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ enum Opts {
)]
hidden: bool,

#[structopt(
short = "G",
long = "no-transfer-git",
help = "Do not transfer .git. Note that .git is hidden so .git is transferred only if --transfer-hidden is set and --no-transfer-git is not set"
)]
no_transfer_git: bool,

#[structopt(help = "cargo command that will be executed remotely")]
command: String,

Expand All @@ -110,6 +117,7 @@ fn main() {
no_copy_lock,
manifest_path,
hidden,
no_transfer_git,
command,
options,
} = Opts::from_args();
Expand Down Expand Up @@ -161,6 +169,10 @@ fn main() {
rsync_to.arg("--exclude").arg(".*");
}

if no_transfer_git {
rsync_to.arg("--exclude").arg(".git");
}

rsync_to
.arg("--rsync-path")
.arg("mkdir -p remote-builds && rsync")
Expand Down