Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Dgit.pm: cmdoutput: Handle undef in arg crash better | Ian Jackson | 2016-07-31 |
| | | | | | | | | | | Use `confess' which produces a stack trace. And don't forget to use Data::Dumper; Bug introduced in e6ce71a87a1c "Move various useful functions into Dgit.pm [...]". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Subprocess error handling: Initialise $? to -1 | Ian Jackson | 2016-07-17 |
| | | | | | | | | | | | | | | | When system(3perl) fails due to syscall error, it sets only $!. When it succeeds it sets only $? and sometimes trashes $!. Conversely, close of a popened filehandle always sets both in all cases. Document this in a comment. So when using system and relying on $?/$! (rather than looking at system's return value), such as when about to use failedcmd, it's necessary to initialise $? to -1. Fix the three call sites where system might be followed by failedcmd but this wasn't done. | ||
* | Dgit.pm: Provide hashfile() | Ian Jackson | 2016-07-16 |
| | | | | Call site(s) will come later. | ||
* | If a .orig in .. is a symlink, hardlink the link target into our private ↵ | Ian Jackson | 2015-08-16 |
| | | | | unpack directory, rather than the link itself (since latter won't work if the symlink is relative). | ||
* | When exec fails, always print the program name in the error message. | Ian Jackson | 2015-07-27 |
| | |||
* | Dgit.pm: Provide executable_on_path (avoids loading File::Which which is ↵ | Ian Jackson | 2015-07-27 |
| | | | | rather more heavyweight) (no callers yet) | ||
* | Do not quote `:' in shellquote. | Ian Jackson | 2015-07-26 |
| | |||
* | Dgit.pm: Provide messagequote | Ian Jackson | 2015-07-26 |
| | |||
* | Work around #793471 (madness with $SIG{__WARN__} and Perl's system builtin): ↵ | Ian Jackson | 2015-07-25 |
| | | | | | | | move $SIG{} setting into setup_sigwarn in Dgit.pm, and check getppid. We also need to fix up the expectation for an error message in one of the tests, where the message changes as a side effect. | ||
* | Do some quoting on debug output (needed if the server might not be ↵ | Ian Jackson | 2015-07-19 |
| | | | | trustworthy and might send us bad stuff). | ||
* | For non-Debian distros, debiantag() uses distro name a la DEP-14. | Ian Jackson | 2015-07-04 |
| | |||
* | Avoid use of "my $_", which is not portable | Ian Jackson | 2015-06-22 |
| | |||
* | Dgit.pm: git_for_each_ref: Provide optional $git_dir argument | Ian Jackson | 2015-05-31 |
| | |||
* | git_get_ref: Move to Dgit.pm and reimplement | Ian Jackson | 2015-05-31 |
| | | | | | | | | | | | | | Use git for-each-ref --format=%(objectname) [r]efs/whatever This pattern won't match literally as a prefix because a ref name cannot contain [, so it must match according to fnmatch. whatever cannot contain fnmatch metacharacters because they're not valid in ref names. This is a better idiom because it might directly look up the ref in question (although currently it probably doesn't). | ||
* | Dgit.pm: git_for_each_ref: do not insist that first component after refs/ ↵ | Ian Jackson | 2015-05-31 |
| | | | | matches \w+ | ||
* | Break out ensuredir and make mkrepotmp use it | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: git_for_each_tag_referring provides referred-to object id too | Ian Jackson | 2015-05-31 |
| | |||
* | Move is_fast_fwd into Dgit.pm | Ian Jackson | 2015-05-31 |
| | |||
* | Move git_rev_parse into Dgit.pm (renaming it from rev_parse | Ian Jackson | 2015-05-31 |
| | |||
* | Move various useful functions into Dgit.pm. Necessitates some slightly ↵ | Ian Jackson | 2015-05-31 |
| | | | | fancy footwork with $::us | ||
* | Dgit.pm: Move debugging earlier in file (pure code motion) | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: Fix next's in git_for_each_tag_referring which should be returns | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: Add debugging to git_for_each_... | Ian Jackson | 2015-05-31 |
| | |||
* | Infra: Exit statuses: work around bizarre behaviour of perl die wrt $?, and ↵ | Ian Jackson | 2015-05-31 |
| | | | | de-reserve policy hook status flag 0x80 | ||
* | Dgit.pm: Introduce $deliberately_re and use it everywhere | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: export git_for_each_tag_referring | Ian Jackson | 2015-05-31 |
| | |||
* | git_for_each_ref: Fix FH handling | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: WIP bugfixes to debugging | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: WIP bugfixes to debugging | Ian Jackson | 2015-05-31 |
| | |||
* | Diagnostics: Make shellquote() print empty arguments as '' | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: Add debugging output | Ian Jackson | 2015-05-31 |
| | |||
* | Debugging: use typeglobs to simplify various things (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Rename $debug variable to $debuglevel (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Move a $debug check into printdebug (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Debugging output: Break out debugcmd into Dgit.pm and use it everywhere (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Move dgit's debugging arrangements into Dgit.pm | Ian Jackson | 2015-05-31 |
| | |||
* | Policy hook protocol: define bits in hex (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Provide $component_re | Ian Jackson | 2015-04-15 |
| | |||
* | Bugfixes (now tests/tests/drs-clone-nogit works) | Ian Jackson | 2015-03-22 |
| | |||
* | Bugfixes (now tests/tests/clone-nogit works) | Ian Jackson | 2015-03-22 |
| | |||
* | Repos policy machinery: better docs, etc. | Ian Jackson | 2015-03-22 |
| | |||
* | Introduce git_for_each_tag_referring | Ian Jackson | 2015-03-22 |
| | |||
* | Introduce git_for_each_ref | Ian Jackson | 2015-03-22 |
| | |||
* | Move stat_exists to Dgit.pm | Ian Jackson | 2015-03-22 |
| | |||
* | Break out $branchprefix, server_branch, server_ref into Dgit.pm | Ian Jackson | 2015-03-22 |
| | |||
* | dgit-repos-server: Deal with FRESHREPO from push hook | Ian Jackson | 2015-03-22 |
| | |||
* | Export policy hook exist status flags from Dgit.pm | Ian Jackson | 2015-03-22 |
| | |||
* | Move $package_re into Debian::Dgit | Ian Jackson | 2015-03-22 |
| | | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Introduce Debian/Dgit.pm | Ian Jackson | 2015-03-22 |