Skip to content
Merged
Show file tree
Hide file tree
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
43 changes: 41 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ iref = "3.2.2"

[features]
backtrace = [ "snafu/backtrace", "eipw-lint/backtrace" ]

[dev-dependencies]
tempfile = "3.23.0"
6 changes: 3 additions & 3 deletions src/changed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::{

use snafu::{ResultExt, Whatever};

use crate::{cli::ChangedFormat, config::Config, git, layout::REPO_DIR};
use crate::{cli::ChangedFormat, config::RepositoryUse, git, layout::REPO_DIR};

pub(crate) fn is_proposal_path(mut p: PathBuf) -> bool {
// Only lint `content/00001.md` and `content/00001/index.md` files.
Expand Down Expand Up @@ -55,13 +55,13 @@ pub(crate) fn is_proposal_path(mut p: PathBuf) -> bool {
pub(crate) fn run(
root_path: &Path,
build_path: &Path,
config: &Config,
repo_use: RepositoryUse,
all: bool,
format: &ChangedFormat,
) -> Result<(), Whatever> {
let repo_path = build_path.join(REPO_DIR);

let both = git::Fresh::new(root_path, &repo_path, &config.locations)
let both = git::Fresh::new(root_path, &repo_path, repo_use)
.whatever_context("initializing build repo")?
.clone_src()
.whatever_context("cloning source repo")?
Expand Down
4 changes: 0 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ pub(crate) struct Args {
#[clap(short = 'C')]
pub(crate) root: Option<PathBuf>,

/// Use the staging repositories (for testing)
#[clap(long = "staging")]
pub(crate) staging: bool,

#[clap(subcommand)]
pub(crate) operation: Operation,
}
Expand Down
Loading
Loading