Merge branch 'master' into ui_tweaks

pull/123/head
Simon Let 6 years ago
commit 232e41b65a
  1. 8
      README.md
  2. 7
      cmd/sanitize/main.go

@ -215,14 +215,6 @@ You can install `jq` using your favourite package manager or you can use other J
*Recorded metadata will be reduced to only include useful information in the future.*
### Graphs
:clock10: *coming soon-ish (working on other parts of the project atm)*
Sneak peak
![graph of command sequences](img/graph-command-sequences.png)
## Known issues
### Q: I use bash on macOS and resh doesn't work

@ -148,7 +148,9 @@ func (s *sanitizer) sanitizeRecord(record *records.Record) error {
record.PwdAfter = s.sanitizePath(record.PwdAfter)
record.RealPwdAfter = s.sanitizePath(record.RealPwdAfter)
record.GitDir = s.sanitizePath(record.GitDir)
record.GitDirAfter = s.sanitizePath(record.GitDirAfter)
record.GitRealDir = s.sanitizePath(record.GitRealDir)
record.GitRealDirAfter = s.sanitizePath(record.GitRealDirAfter)
record.Home = s.sanitizePath(record.Home)
record.ShellEnv = s.sanitizePath(record.ShellEnv)
@ -166,6 +168,11 @@ func (s *sanitizer) sanitizeRecord(record *records.Record) error {
log.Println("Error while snitizing GitOriginRemote url", record.GitOriginRemote, ":", err)
return err
}
record.GitOriginRemoteAfter, err = s.sanitizeGitURL(record.GitOriginRemoteAfter)
if err != nil {
log.Println("Error while snitizing GitOriginRemoteAfter url", record.GitOriginRemoteAfter, ":", err)
return err
}
// sanitization destroys original CmdLine length -> save it
record.CmdLength = len(record.CmdLine)

Loading…
Cancel
Save