83 Commits (main)

Author SHA1 Message Date
Lunny Xiao 26602fd207
Remove undocumented support of signing key in the repository git configuration file (#36143) 4 days ago
Lunny Xiao d2a372fc59
Move some functions to gitrepo package to reduce RepoPath reference directly (#36126) 7 days ago
Lunny Xiao a440116a16
Support updating branch via API (#35951) 1 week ago
Lunny Xiao 64960a18f9
Move commit related functions to gitrepo package (#35600) 2 weeks ago
Lunny Xiao 69f5ee970c
Move some functions to gitrepo package (#35543) 2 months ago
Lunny Xiao ad2ff67343
Move archive function to repo_model and gitrepo (#35514) 2 months ago
Lunny Xiao 7bf2972379
Move GetDiverging functions to gitrepo (#35524) 3 months ago
Lunny Xiao 9332ff291b
Move git command to git/gitcmd (#35483) 3 months ago
Lunny Xiao d2e994db2c
Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 4 months ago
wxiaoguang 60246730b5
Remove wrong "git.DefaultContext" (#35364) 4 months ago
silverwind 1f35435b81
Run `gopls modernize` on codebase (#34751) 6 months ago
ChristopherHX c9505a26b9
Improve instance wide ssh commit signing (#34341) 6 months ago
Lunny Xiao 32b97b3ce8
Uniform all temporary directories and allow customizing temp path (#32352) 8 months ago
TheFox0x7 ae3a18e01a
Remove context from git struct (#33793) 10 months ago
wxiaoguang 52b319bc00
Refactor pprof labels and process desc (#32909) 1 year ago
wxiaoguang 513da407f4
Support "merge upstream branch" (Sync fork) (#32741) 1 year ago
wxiaoguang 9c08637eae
Make "sync branch" also sync object format and add tests (#30878) 2 years ago
wxiaoguang 7c613f100e
Make sure git version&feature are always prepared (#30877) 2 years ago
wxiaoguang 21151474e3
Fix loadOneBranch panic (#29938) 2 years ago
wxiaoguang 1ef87773b1
Refactor modules/git global variables (#29376) 2 years ago
wxiaoguang a24e1da7e9
Refactor parseSignatureFromCommitLine (#29054) 2 years ago
John Olheiser 76bbad4e74
Check for sha256 support to use --object-format flag (#28928) 2 years ago
Adam Majer d68a613ba8
Add support for sha256 repositories (#23894) 2 years ago
Lunny Xiao 4eb2a29910
Improve ObjectFormat interface (#28496) 2 years ago
Lunny Xiao 408a484224
Adjust object format interface (#28469) 2 years ago
wxiaoguang 9947af639c
Only use SHA256 feature when git >= 2.42 (#28466) 2 years ago
Adam Majer cbf923e87b
Abstract hash function usage (#28138) 2 years ago
wxiaoguang dfa4e5857f
Fix git 2.11 error when checking IsEmpty (again) (#27399) 2 years ago
wxiaoguang caef9f9503
Fix git 2.11 error when checking IsEmpty (#27393) 2 years ago
wxiaoguang c6b92c84fe
Sync repo's IsEmpty status correctly (#26517) 2 years ago
oliverpool 75ea0d5dba
Faster git.GetDivergingCommits (#24482) 3 years ago
wxiaoguang e422342eeb
Allow adding new files to an empty repo (#24164) 3 years ago
wxiaoguang 334c899f7b
Improve git log for debugging (#24095) 3 years ago
Gusted 1cb8d14bf7
Use proxy for pull mirror (#22771) 3 years ago
wxiaoguang 6bc3079c00
Refactor git command package to improve security and maintainability (#22678) 3 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 3 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 3 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 3 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 4 years ago
wxiaoguang c83168104b
Use a more general (and faster) method to sanitize URLs with credentials (#19239) 4 years ago
Lunny Xiao c29fbc6d23
Hide sensitive content on admin panel progress monitor (#19218) 4 years ago
zeripath 2d21d2af9e
Make migrations SKIP_TLS_VERIFY apply to git too (#19132) 4 years ago
Lunny Xiao 1b1658d887
Fix isempty detection of git repository (#18746) 4 years ago
Martin Scholz 26718a785a
Change git.cmd to RunWithContext (#18693) 4 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 4 years ago
Lunny Xiao 401e5c8174
Fix broken when no commits and default branch is not master (#18422) 4 years ago
6543 80adbebbc8
Unexport git.GlobalCommandArgs (#18376) 4 years ago
Gusted c2e13fb763
Fix partial cloning a repo (#18373) 4 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 4 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 4 years ago