feature: enable get root files
- allow get files/dirs at root repo
This commit is contained in:
parent
4e3b561f61
commit
59d0dd7ab4
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ async fn checkout_handler(State(state): State<AppState>, Query(param): Query<Che
|
|||
);
|
||||
}
|
||||
match param.path.as_str() {
|
||||
legit_path if param.path.contains("/") || state.check_country_existed(param.path.as_str()) => {
|
||||
legit_path if param.path.contains("/") || state.check_country_existed(param.path.as_str()) || param.path.is_empty() => {
|
||||
let rpath = repo_path.unwrap().clone();
|
||||
let repo = match Repository::open_bare(rpath) {
|
||||
Ok(repo) => repo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue