aboutsummaryrefslogtreecommitdiff
path: root/internal/osutil
Commit message (Collapse)AuthorAge
* osutil: update docstring and tests (#6255)ᴜɴᴋɴᴡᴏɴ2020-08-19
|
* osutil: use system API to get the username when env vars are empty (#6246)bibo382020-08-19
| | | | | | | As Golang supports getting usernames via the standard library, this function is now used to get the username if the environment variables are empty. Using the standard library as a fallback is intended to keep compability to existing implementations that rely on the environment variables dictating the current username.
* login_source: migrate to GORM and add tests (#6090)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | | | | | | | | | | | | | * Use GORM in all write paths * Migrate to GORM * Fix lint errors * Use GORM to init table * dbutil: make writer detect error * Add more tests * Rename to clearTables * db: finish adding tests * osutil: add tests * Fix load source files path
* util: add tests (#5989)ᴜɴᴋɴᴡᴏɴ2020-03-16
|
* refactor: unify error handling in routing layerᴜɴᴋɴᴡᴏɴ2020-03-16
|
* conf: add unit tests (#5954)ᴜɴᴋɴᴡᴏɴ2020-02-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * conf: add tests for utils.go * conf: add tests for static.go * mock os/exec * Run tests on Windows * appveyor: fix gcc not found * computed: add unit tests * log: add unit tests * log: fix tests on Windows * conf: add some tests * Finish adding tests * Cover more cases * Add tests for testutil * Add more tests
* cmd/web: fix error when Unix socket not existsᴜɴᴋɴᴡᴏɴ2020-02-24
|
* conf: overhaul security settingsᴜɴᴋɴᴡᴏɴ2020-02-22
|
* osutil: add unit testsᴜɴᴋɴᴡᴏɴ2020-02-19
|
* Use go-bindata to embed `public` and `templates` files into binary (#5920)Michael Li2020-02-17
* fixed private repositories are hidden in the organization's view * use go-bindata integrate public and templates files to gogs binary * optimize Dockerfile don't COPY public and templates files * use kevinburke's go-bindata to generate assets code * reset develepment as default run mode in configure file * optimize generated assets code relayout and help function * fixed code format * Update conf/app.ini * assets: add LICENSE headers * Some housekeeping * assets/public: simplify code logic * assets/templates: simplify code logic * cmd/web: more concise variable names * Minor changes * Add custom public and templates support back Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>