|
1 |
| -import { Buffer } from 'buffer' |
| 1 | +import { |
| 2 | + AuthCallback, |
| 3 | + AuthFailureCallback, |
| 4 | + AuthSuccessCallback, |
| 5 | + HttpClient, |
| 6 | + HttpHeaders, |
| 7 | + MessageCallback, |
| 8 | + ProgressCallback |
| 9 | +} from '../models' |
2 | 10 |
|
3 |
| -import { FileSystem } from '../models/FileSystem' |
| 11 | +import { Buffer } from 'buffer' |
4 | 12 | import { Cache } from '../models/Cache'
|
5 |
| -import { _currentBranch } from '../commands/currentBranch' |
6 |
| -import { MissingParameterError } from '../errors/MissingParameterError' |
7 |
| -import { RemoteCapabilityError } from '../errors/RemoteCapabilityError' |
| 13 | +import { FileSystem } from '../models/FileSystem' |
| 14 | +import { GitCommit } from '../models/GitCommit' |
8 | 15 | import { GitConfigManager } from '../managers/GitConfigManager'
|
| 16 | +import { GitPackIndex } from '../models/GitPackIndex' |
9 | 17 | import { GitRefManager } from '../managers/GitRefManager'
|
10 | 18 | import { GitRemoteManager } from '../managers/GitRemoteManager'
|
11 | 19 | import { GitShallowManager } from '../managers/GitShallowManager'
|
12 |
| -import { GitCommit } from '../models/GitCommit' |
13 |
| -import { GitPackIndex } from '../models/GitPackIndex' |
14 |
| -import { hasObject } from '../storage/hasObject' |
15 |
| -import { _readObject as readObject } from '../storage/readObject' |
| 20 | +import { MissingParameterError } from '../errors/MissingParameterError' |
| 21 | +import { RemoteCapabilityError } from '../errors/RemoteCapabilityError' |
| 22 | +import { _currentBranch } from '../commands/currentBranch' |
16 | 23 | import { abbreviateRef } from '../utils/abbreviateRef'
|
17 | 24 | import { collect } from '../utils/collect'
|
18 | 25 | import { emptyPackfile } from '../utils/emptyPackfile'
|
19 | 26 | import { filterCapabilities } from '../utils/filterCapabilities'
|
20 |
| -import { join } from '../utils/join' |
| 27 | +import { forAwait } from '../utils/forAwait' |
21 | 28 | import { getGitClientAgent } from '../utils/pkg'
|
22 |
| -import { splitLines } from '../utils/splitLines' |
| 29 | +import { hasObject } from '../storage/hasObject' |
| 30 | +import { join } from '../utils/join' |
23 | 31 | import { parseUploadPackResponse } from '../wire/parseUploadPackResponse'
|
| 32 | +import { _readObject as readObject } from '../storage/readObject' |
| 33 | +import { splitLines } from '../utils/splitLines' |
| 34 | +import { stripCredentialsFromUrl } from 'git-essentials/utils/url' |
24 | 35 | import { writeUploadPackRequest } from '../wire/writeUploadPackRequest'
|
25 |
| -import { forAwait } from '../utils/forAwait' |
26 |
| -import { |
27 |
| - AuthCallback, |
28 |
| - AuthFailureCallback, |
29 |
| - AuthSuccessCallback, |
30 |
| - HttpClient, |
31 |
| - HttpHeaders, |
32 |
| - MessageCallback, |
33 |
| - ProgressCallback |
34 |
| -} from '../models' |
35 |
| - |
36 | 36 |
|
37 | 37 | type FetchParams = {
|
38 | 38 | fs: FileSystem
|
@@ -346,7 +346,7 @@ export async function _fetch({
|
346 | 346 | const noun = fullref.startsWith('refs/tags') ? 'tag' : 'branch'
|
347 | 347 | const FETCH_HEAD = {
|
348 | 348 | oid,
|
349 |
| - description: `${noun} '${abbreviateRef(fullref)}' of ${url}`, |
| 349 | + description: `${noun} '${abbreviateRef(fullref)}' of ${stripCredentialsFromUrl(url)}`, |
350 | 350 | }
|
351 | 351 |
|
352 | 352 | if (onProgress || onMessage) {
|
|
0 commit comments