refactor: move SPEC_URL to util, reuse in preamble
This commit is contained in:
parent
5bb85d3bd7
commit
aa6573b770
2 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
|||
import path from 'path';
|
||||
import { toHex } from './util';
|
||||
|
||||
|
||||
const SPEC_URL = 'https://git-lfs.github.com/spec/v1';
|
||||
import { SPEC_URL, toHex } from './util';
|
||||
|
||||
|
||||
export interface PointerInfo {
|
||||
|
|
|
@ -2,7 +2,10 @@ import fs from 'fs/promises';
|
|||
import { constants as fsConstants } from 'fs';
|
||||
import { BasicAuth } from './types';
|
||||
|
||||
export const LFS_POINTER_PREAMBLE = 'version https://git-lfs.github.com/spec/v1\n';
|
||||
|
||||
export const SPEC_URL = 'https://git-lfs.github.com/spec/v1';
|
||||
|
||||
export const LFS_POINTER_PREAMBLE = `version ${SPEC_URL}\n`;
|
||||
|
||||
|
||||
/** Returns true if given blob represents an LFS pointer. */
|
||||
|
|
Loading…
Reference in a new issue