-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support receive-pack over SSH * Improve tracing in push routines * Improve error propagation between hooks and proxy * Improve push option handling: use predefined struct * Add `force` push option commit-id:2dbf5e93
- Loading branch information
1 parent
cd9a4bb
commit 279ff6d
Showing
34 changed files
with
654 additions
and
402 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use opentelemetry::global; | ||
use std::collections::HashMap; | ||
use tracing::Span; | ||
use tracing_opentelemetry::OpenTelemetrySpanExt; | ||
|
||
pub fn make_context_propagator() -> HashMap<String, String> { | ||
let span = Span::current(); | ||
|
||
let mut context_propagator = HashMap::<String, String>::default(); | ||
let context = span.context(); | ||
global::get_text_map_propagator(|propagator| { | ||
propagator.inject_context(&context, &mut context_propagator); | ||
}); | ||
|
||
tracing::debug!("context propagator: {:?}", context_propagator); | ||
context_propagator | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#!/bin/bash | ||
cd /josh/ | ||
|
||
cd /josh/ || exit 1 | ||
|
||
# shellcheck disable=SC2086 | ||
# intended to pass along the arguments | ||
RUST_BACKTRACE=1 josh-proxy --gc --local=/data/git/ --remote="${JOSH_REMOTE}" ${JOSH_EXTRA_OPTS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.